| NearCacheConfigSetEvictionPolicy Method |
Sets the eviction policy.
Valid values are:
- LRU (Least Recently Used)
- LFU (Least Frequently Used)
- NONE (no extra eviction, time-to-live-seconds or max-idle-seconds may still apply)
- RANDOM (random entry)
Namespace:
Hazelcast.Config
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.12.3
Syntax public virtual NearCacheConfig SetEvictionPolicy(
string evictionPolicy
)
Public Overridable Function SetEvictionPolicy (
evictionPolicy As String
) As NearCacheConfig
public:
virtual NearCacheConfig^ SetEvictionPolicy(
String^ evictionPolicy
)
abstract SetEvictionPolicy :
evictionPolicy : string -> NearCacheConfig
override SetEvictionPolicy :
evictionPolicy : string -> NearCacheConfig
Parameters
- evictionPolicy
- Type: SystemString
eviction policy.
Return Value
Type:
NearCacheConfigthis Near Cache config instance
See Also