ICache MembersNFX Class Library

[This is preliminary documentation and is subject to change.]

The ICache type exposes the following members.
Methods

  NameDescription
Public methodOnlineDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from OnlineIDisposable.)
Public methodGetOrCreateTable 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
Public methodGetOrCreateTable 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
Public methodGetTable TKey 
Returns existing table by name, if it does not exist thorws. The TKey must correspond to existing table
Public methodPurgeAll
Removes all data from all tables stored in the cache
Back to Top
Extension Methods

  NameDescription
Public Extension MethodDeleteThrough TKey  (Defined by CacheExtensions.)
Public Extension MethodFetchFrom 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.)
Public Extension MethodFetchThrough TKey, TResult 
Fetches an item through cache
(Defined by CacheExtensions.)
Public Extension MethodSaveThrough TKey, TData  (Defined by CacheExtensions.)
Back to Top
Properties

  NameDescription
Public propertyComponentCommonName
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.)
Public propertyComponentDirector
Returns a reference to an object that this app component services/operates under, or null
(Inherited from IApplicationComponent.)
Public propertyComponentSID
Returns process/instance unique app component system id
(Inherited from IApplicationComponent.)
Public propertyCount
Returns how many records are kept in cache
Public propertyLocality
Returns whether the cache key:value mappings are local or distributed
Public propertyPersistence
Returns the model of key:value mapping persistence that this cache supports
Public propertyPileStatus
Returns the status of the pile where object are stored
Public propertyTables
Tables that this cache contains
Back to Top
See Also