Sets the maximum entry count in the region before LRU eviction.
Namespace: GemStone.GemFire.Cache
Assembly: GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll)
Version: 2.7.0.1
Syntax
| C# |
|---|
public uint SetLruEntriesLimit( uint entriesLimit ) |
| Visual Basic (Declaration) |
|---|
Public Function SetLruEntriesLimit ( _ entriesLimit As UInteger _ ) As UInteger |
| Visual C++ |
|---|
public: unsigned int SetLruEntriesLimit ( unsigned int entriesLimit ) |
Parameters
- entriesLimit
- UInt32
the number of entries to allow, or 0 to disable LRU
Return Value
the previous value
Exceptions
| Exception | Condition |
|---|---|
| GemStone.GemFire.Cache..::IllegalStateException | if the new entriesLimit changes LRU from disabled to enabled or enabled to disabled. |
See Also
AttributesMutator Class
GemStone.GemFire.Cache Namespace