[
https://jira.jboss.org/jira/browse/ISPN-6?page=com.atlassian.jira.plugin....
]
Galder Zamarreno commented on ISPN-6:
-------------------------------------
There has been some discussions on the infinispan dev list and the following has been
agreed:
1. A hibernate.cache.infinispan.cfg property will point to infinispan configuration file
containing named caches.
2. It was agreed that there'll be a cache per entity and collection type, and that an
entity's collections should not live in the same cache.
3. The default cache names for entity, collection, query and timestamps will be defined by
the following properties:
hibernate.cache.infinispan.entity
hibernate.cache.infinispan.collection
hibernate.cache.infinispan.query
hibernate.cache.infinispan.timestamps
4. The defaults for entity and collection can be overridden on a per entity/collection
basis using the following format:
hibernate.cache.infinispan.com.acme.Person=NoEvictionCache
hibernate.cache.infinispan.com.acme.Address=NoEvictionCache
hibernate.cache.infinispan.com.acme.Person.addresses=NoEvictionCache
The above configuration indicates that for Person and Address entities and
Person.addresses collection, a cache named with NoEvictionCache configuration will be
used.
5. Since eviction configuration is very common, we've decided that it will be possible
to override the most common Infinispan eviction properties using the following property
patterns:
// For an individual entity:
hibernate.cache.infinispan.com.acme.Person.eviction.strategy.=LRU
hibernate.cache.infinispan.com.acme.Person.eviction.wake_up_interval.=2000
hibernate.cache.infinispan.com.acme.Person.eviction.max_entries=5000
hibernate.cache.infinispan.com.acme.Person.eviction.lifespan=60000
hibernate.cache.infinispan.com.acme.Person.eviction.max_idle=30000
// For a general data type:
hibernate.cache.infinispan.entity.eviction.strategy.=LRU
hibernate.cache.infinispan.entity.eviction.wake_up_interval.=2000
hibernate.cache.infinispan.entity.eviction.max_entries=5000
hibernate.cache.infinispan.entity.eviction.lifespan=60000
hibernate.cache.infinispan.entity.eviction.max_idle=30000
Infinispan cache provider for Hibernate
---------------------------------------
Key: ISPN-6
URL:
https://jira.jboss.org/jira/browse/ISPN-6
Project: Infinispan
Issue Type: Feature Request
Reporter: Manik Surtani
Assignee: Galder Zamarreno
Fix For: 4.0.0.BETA1, 4.0.0.GA
Hibernate will need a cache provider plugin for Hibernate. While this will reside in the
Hibernate trunk codebase, the JIRA is tracked here.
General ideas:
Use a separate named cache per entity. This cache would hold entity instances as well as
collections pertaining to that entity.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira