Show / Hide Table of Contents

    Class EvictionPolicyBase

    Base class for predefined eviction policies.

    Inheritance
    System.Object
    EvictionPolicyBase
    FifoEvictionPolicy
    LruEvictionPolicy
    Implements
    IEvictionPolicy
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Apache.Ignite.Core.Cache.Eviction
    Assembly: Apache.Ignite.Core.dll
    Syntax
    public abstract class EvictionPolicyBase : IEvictionPolicy

    Fields

    DefaultBatchSize

    Default batch cache size.

    Declaration
    public const int DefaultBatchSize = 1
    Field Value
    Type Description
    System.Int32

    DefaultMaxMemorySize

    Default max cache size in bytes.

    Declaration
    public const long DefaultMaxMemorySize = 0L
    Field Value
    Type Description
    System.Int64

    DefaultMaxSize

    Default max cache size.

    Declaration
    public const int DefaultMaxSize = 100000
    Field 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

    Implements

    IEvictionPolicy
    Back to top © 2015 - 2019 The Apache Software Foundation