Memory stack cache strategy.
Inheritance Hierarchy
Scanjour.Workflow4.Base.CacheBaseCache
Scanjour.Workflow4.Base.CacheMemoryStackCache
Namespace: Scanjour.Workflow4.Base.Cache
Assembly: Scanjour.Workflow4.Base (in Scanjour.Workflow4.Base.dll) Version: 23.3.0.0 (23.3.0.0)
Syntax
The MemoryStackCache type exposes the following members.
Constructors
Name | Description | |
---|---|---|
MemoryStackCache |
Creates new MemoryStackCache instance with a given size.
Default cache size is 20 entries.
|
Methods
Name | Description | |
---|---|---|
Contains |
Checks if given key is present in cache.
(Overrides BaseCacheContains(String).) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetT |
Gets the value assigned to a given key and casts it to T.
(Overrides BaseCacheGetT(String).) | |
GetHashCode | Serves as the default hash function. (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 |
Adds a new value under the given key to cache.
(Overrides BaseCachePut(String, Object).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetT |
Tries to get the value assigned to a given key.
(Inherited from BaseCache.) |
Extension Methods
Name | Description | |
---|---|---|
FormatFromDictionary | (Defined by DictionaryExtensions.) | |
GetFirstValue | (Defined by DictionaryExtensions.) |
See Also