The SimpleCache type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SimpleCache |
Initializes a new instance of the SimpleCache class.
|
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
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.) |
|
Flush |
Flushes all items from the cache.
|
|
Get |
Gets the value at the specified key.
|
|
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
|
GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
|
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
|
Put |
Sets the value at the specified cache key.
|
|
Remove |
Removes the value at the specified key.
|
|
ToString | (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
DefaultExpirationInterval |
Default absolute interval after which to expire cache entries (10 minutes).
|
|
DefaultMaxSize |
Default maximum number of entries.
|
|
DefaultPruneInterval |
Default interval at which to prune the cache (1 minute).
|
Properties
Name | Description | |
---|---|---|
ExpirationInterval |
Gets or sets the absolute interval after which unused cache entries will expire.
|
|
Item |
Gets or sets the Object at the specified key.
|
|
MaxSize |
Gets or sets the max number of entries allowed in the cache.
|
|
PruneInterval |
Gets or sets the interval at which to prune the cache.
|