Package org.openspaces.core.space
Class LruCachePolicy
java.lang.Object
org.openspaces.core.space.LruCachePolicy
- All Implemented Interfaces:
CachePolicy
- Direct Known Subclasses:
CustomCachePolicy
Configures the Space to run in LRU mode. Defaults value for all configuration will be based on
the schema chosen.
- Author:
- kimchy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninitialLoadPercentage(int initialLoadPercentage) When a space is running in a persistent mode (i.e.setInitialLoadPercentage(int initialLoadPercentage) When a space is running in a persistent mode (i.e.The number of entries to keep in the space.size(int size) The number of entries to keep in the space.toProps()
-
Constructor Details
-
LruCachePolicy
public LruCachePolicy()
-
-
Method Details
-
size
The number of entries to keep in the space. In all bulit in schemas of GigaSpaces, if this is not set, the value is 100000. -
initialLoadPercentage
When a space is running in a persistent mode (i.e. using the HibernateDataSource implementation), The initial_load sets the % of the space cache data to be loaded (default is 50%) maximum size. To disable this initial load phase, you should configure the initial_load value to be 0. -
setSize
The number of entries to keep in the space. In all bulit in schemas of GigaSpaces, if this is not set, the value is 100000. -
setInitialLoadPercentage
When a space is running in a persistent mode (i.e. using the HibernateDataSource implementation), The initial_load sets the % of the space cache data to be loaded (default is 50%) maximum size. To disable this initial load phase, you should configure the initial_load value to be 0. -
toProps
- Specified by:
toPropsin interfaceCachePolicy
-