About cache

1-10 of 200Refresh
Manual
383

Shared (L2) Entity Cache

that it manages. The persistence context serves as a first level cache. An attempt to retrieve ... is one EntityManager. This section describes a level 2  (L2) cache of entity objects, which is managed ... of this cache makes it useful in applications that use many short term EntityManager instances.  In addition
JPA Doc
100

javax.persistence.Cache

javax.persistence Interface Cache Interface used to interact with the second-level cache. If a cache is not in use, the methods of this interface have no effect, except for contains, which returns false. Since: JPA 2.0 Learn how to use Cache in Chapter 3 of the ObjectDB/JPA manual. boolean contains
JPA Doc
94

contains(cls, primaryKey)

Method javax.persistence.Cache boolean contains(   Class cls,   Object primaryKey ) Whether the cache contains data for the given entity. Parameters: cls - entity class primaryKey - primary key Returns: boolean indicating whether the entity is in the cache Since: JPA 2.0
JDO Doc
93

Constants.PMF_ATTRIBUTE_IGNORE_CACHE

Static Field javax.jdo.Constants String PMF_ATTRIBUTE_IGNORE_CACHE The name of the persistence manager factory element's "ignore-cache" attribute. Since: JDO 2.1
JPA Doc
93

evict(cls)

Method javax.persistence.Cache void evict(   Class cls ) Remove the data for entities of the specified class (and its subclasses) from the cache. Parameters: cls - entity class Since: JPA 2.0
JPA Doc
93

evict(cls, primaryKey)

Method javax.persistence.Cache void evict(   Class cls,   Object primaryKey ) Remove the data for the given entity from the cache. Parameters: cls - entity class primaryKey - primary key Since: JPA 2.0
JPA Doc
93

evictAll()

Method javax.persistence.Cache void evictAll() Clear the cache. Since: JPA 2.0
JDO Doc
92

Constants.PROPERTY_IGNORE_CACHE

Static Field javax.jdo.Constants String PROPERTY_IGNORE_CACHE "javax.jdo.option.IgnoreCache" Since: JDO 2.1 See Also: PersistenceManagerFactory.getIgnoreCache()
Manual
41

Database Management Settings

="." mode="write" />   cache="64mb" max-threads="10" synchronized="false" />    cache results ... . The element cache="64mb" max-threads="10" /> The element
Forum
35

Soft Reference Object Cache Recommendation

be cached until the Java Virtual Machine (JVM) does a full Garbage Collection (GC) when heap RAM gets low ... [] and instruct ObjectDB to use soft reference for its Level One (L1) object data cache.  I disable the L2 cache and use 1 MB for the ObjectDB Datastore page file cache with page file size of 64 KB