]
Ben Wang commented on JBCACHE-702:
----------------------------------
I have decided to use the thread local approach, InvocationContext to provide the region
concept. The usage will be:
InvocationContext.setRegion("SESSION");
cache.attach()
cache.detach()
...
PojoCache to specify a user-defined region option for buddy
replication and eviction policy
-------------------------------------------------------------------------------------------
Key: JBCACHE-702
URL:
http://jira.jboss.com/jira/browse/JBCACHE-702
Project: JBoss Cache
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: PojoCache
Reporter: Ben Wang
Assigned To: Ben Wang
Fix For: 2.0.0
Currently, the design of flat space mapping in 2.0 means that the object graph
doesn't reside under the same tree. When we have buddy replication, eviction or
cacheloader, this can be a problem to implement. The best solution is to have an notion of
region. For example, something toward this line:
cache.attach(region, id, pojo)
will ensure everything is put under /region/id, and __JBOSS_INTERNAL__/region/guid
I am thinking to put this in an Option class such as:
cache.attach(id, pojo, option)
so it is more generic.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: