Class EvictionPolicyBase
Base class for predefined eviction policies.
Implements
Namespace: Apache.Ignite.Core.Cache.Eviction
Assembly: Apache.Ignite.Core.dll
Syntax
public abstract class EvictionPolicyBase : object, IEvictionPolicyFields
DefaultBatchSize
Default batch cache size.
Declaration
public const int DefaultBatchSize = nullField Value
| Type | Description | 
|---|---|
| System.Int32 | 
DefaultMaxMemorySize
Default max cache size in bytes.
Declaration
public const long DefaultMaxMemorySize = nullField Value
| Type | Description | 
|---|---|
| System.Int64 | 
DefaultMaxSize
Default max cache size.
Declaration
public const int DefaultMaxSize = nullField Value
| Type | Description | 
|---|---|
| System.Int32 | 
Properties
BatchSize
Gets or sets the size of the eviction batch. Batch eviction is enabled only if maximum memory limit isn't set (MaxMemorySize == 0).
Declaration
public int BatchSize { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
MaxMemorySize
Gets or sets the maximum allowed cache size in bytes. 0 for unlimited.
Declaration
public long MaxMemorySize { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Int64 | 
MaxSize
Gets or sets the maximum allowed cache size (entry count). 0 for unlimited.
Declaration
public int MaxSize { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Int32 |