Show / Hide Table of Contents

# Class MemoryEventStorageSpi

In-memory event storage.

##### Inheritance

System.Object
MemoryEventStorageSpi

##### Implements

IEventStorageSpi

##### 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.Events

###### Assembly: Apache.Ignite.Core.dll

##### Syntax

    public class MemoryEventStorageSpi : IEventStorageSpi

### Constructors

#### MemoryEventStorageSpi()

Initializes a new instance of the MemoryEventStorageSpi class.

##### Declaration

    public MemoryEventStorageSpi()

### Fields

#### DefaultExpirationTimeout

The default expiration timeout.

##### Declaration

    public static readonly TimeSpan DefaultExpirationTimeout

##### Field Value

Type | Description
--- | ---
System.TimeSpan |

#### DefaultMaxEventCount

Default event count limit.

##### Declaration

    public const long DefaultMaxEventCount = 10000L

##### Field Value

Type | Description
--- | ---
System.Int64 |

### Properties

#### ExpirationTimeout

Gets or sets the expiration timeout for stored events. Negative value means no expiration. Defaults to -1 second.

##### Declaration

    public TimeSpan ExpirationTimeout { get; set; }

##### Property Value

Type | Description
--- | ---
System.TimeSpan |

#### MaxEventCount

Gets or sets the maximum event count to store. When this limit is reached, older events are removed. Defaults to DefaultMaxEventCount.

##### Declaration

    public long MaxEventCount { get; set; }

##### Property Value

Type | Description
--- | ---
System.Int64 |

### Implements

IEventStorageSpi