The SimpleCache type exposes the following members.

Constructors

  Name Description
Public method SimpleCache
Initializes a new instance of the SimpleCache class.

Methods

  Name Description
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method Flush
Flushes all items from the cache.
Public method Get
Gets the value at the specified key.
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Put
Sets the value at the specified cache key.
Public method Remove
Removes the value at the specified key.
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  Name Description
Public field Static member DefaultExpirationInterval
Default absolute interval after which to expire cache entries (10 minutes).
Public field Static member DefaultMaxSize
Default maximum number of entries.
Public field Static member DefaultPruneInterval
Default interval at which to prune the cache (1 minute).

Properties

  Name Description
Public property ExpirationInterval
Gets or sets the absolute interval after which unused cache entries will expire.
Public property Item
Gets or sets the Object at the specified key.
Public property MaxSize
Gets or sets the max number of entries allowed in the cache.
Public property PruneInterval
Gets or sets the interval at which to prune the cache.

See Also