[This is preliminary documentation and is subject to change.]
The ICache type exposes the following members.Methods
| Name | Description | |
|---|---|---|
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from | ||
| GetOrCreateTable TKey (String, IEqualityComparer TKey ) |
Returns existing table by name, if it does not exist creates a new table.
For existing table the types must be identical to the ones used at creation
| |
| GetOrCreateTable TKey (String, Boolean , IEqualityComparer TKey ) |
Returns existing table by name, if it does not exist creates a new table.
For existing table the types must be identical to the ones used at creation
| |
| GetTable TKey |
Returns existing table by name, if it does not exist thorws.
The TKey must correspond to existing table
| |
| PurgeAll |
Removes all data from all tables stored in the cache
|
Extension Methods
| Name | Description | |
|---|---|---|
| DeleteThrough TKey | (Defined by CacheExtensions.) | |
| FetchFrom TKey, TResult |
Fetches an existing item from cache or null. IsAbsent is true when data was read from cache as an AbsentValue
(Defined by CacheExtensions.) | |
| FetchThrough TKey, TResult |
Fetches an item through cache
(Defined by CacheExtensions.) | |
| SaveThrough TKey, TData | (Defined by CacheExtensions.) |
Properties
| Name | Description | |
|---|---|---|
| ComponentCommonName |
Returns the common name used to identify the component, for example "Glue" for various IGlue implementations.
This name is searched-by some management tools that allow to find component by this name that does not change between
application restarts like ComponentSID does. Subordinate (non-root) components return null
(Inherited from IApplicationComponent.) | |
| ComponentDirector |
Returns a reference to an object that this app component services/operates under, or null
(Inherited from IApplicationComponent.) | |
| ComponentSID |
Returns process/instance unique app component system id
(Inherited from IApplicationComponent.) | |
| Count |
Returns how many records are kept in cache
| |
| Locality |
Returns whether the cache key:value mappings are local or distributed
| |
| Persistence |
Returns the model of key:value mapping persistence that this cache supports
| |
| PileStatus |
Returns the status of the pile where object are stored
| |
| Tables |
Tables that this cache contains
|
See Also