NearCacheConfig Methods |
The NearCacheConfig type exposes the following members.
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
GetAsReadOnly |
Returns an immutable version of this configuration.
| |
GetEvictionPolicy |
Returns the eviction policy for the Near Cache.
| |
GetHashCode | (Inherited from Object.) | |
GetInMemoryFormat |
Returns InMemoryFormat | |
GetMaxIdleSeconds |
Gets the maximum number of seconds each entry can stay in the Near Cache as untouched (not read).
| |
GetMaxSize |
Returns the maximum size of the Near Cache. When the maxSize is reached, the Near Cache is evicted based on the policy defined. | |
GetName |
Returns the name of the Near Cache
| |
GetTimeToLiveSeconds |
Returns the maximum number of seconds for each entry to stay in the Near Cache (time to live). Entries that are older than timeToLiveSeconds will automatically be evicted from the Near Cache. | |
GetType | (Inherited from Object.) | |
IsCacheLocalEntries | Obsolete. | |
IsInvalidateOnChange |
Checks if Near Cache entries are invalidated when the entries in the backing data structure are changed
(updated or removed).
When this setting is enabled, a Hazelcast instance with a Near Cache listens for cluster-wide changes on the entries of the backing data structure and invalidates its corresponding Near Cache entries. Changes done on the local Hazelcast instance always invalidate the Near Cache immediately. | |
IsSerializeKeys | ||
SetCacheLocalEntries | Obsolete. | |
SetEvictionPolicy |
Sets the eviction policy.
Valid values are:
| |
SetInMemoryFormat(String) | SetInMemoryFormat(InMemoryFormat)
this setter is for reflection based configuration building
| |
SetInMemoryFormat(InMemoryFormat) |
Sets the data type used to store entries.
Possible values:
| |
SetInvalidateOnChange |
Sets if Near Cache entries are invalidated when the entries in the backing data structure are changed
(updated or removed).
When this setting is enabled, a Hazelcast instance with a Near Cache listens for cluster-wide changes on the entries of the backing data structure and invalidates its corresponding Near Cache entries. Changes done on the local Hazelcast instance always invalidate the Near Cache immediately. | |
SetMaxIdleSeconds |
Set the maximum number of seconds each entry can stay in the Near Cache as untouched (not read).
| |
SetMaxSize |
Sets the maximum size of the Near Cache.
When the maxSize is reached, the Near Cache is evicted based on the policy defined.
Accepts any integer between 0 and int.MaxValue. The value 0 means int.MaxValue. The default is 0. | |
SetName |
Sets the name of the Near Cache.
| |
SetSerializeKeys | ||
SetTimeToLiveSeconds |
Returns the maximum number of seconds for each entry to stay in the Near Cache (time to live).
Entries that are older than {@code timeToLiveSeconds} will automatically be evicted from the Near Cache. Accepts any integer between 0 and int.MaxValue. The value 0 means int.MaxValue. The default is 0. | |
ToString | (Overrides ObjectToString.) |