[This is preliminary documentation and is subject to change.]
The ICacheImplementation type exposes the following members.Methods
Name | Description | |
---|---|---|
![]() | CheckForCompleteStop |
Non-blocking call that returns true when the service instance has completely stopped after SignalStop()
(Inherited from IService.) |
![]() | Configure |
Configures an entity from supplied config node
(Inherited from IConfigurable.) |
![]() | ![]() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from ![]() |
![]() | ExternalGetParameter |
Gets external parameter value returning true if parameter was found
(Inherited from IExternallyParameterized.) |
![]() | ExternalParametersForGroups |
Gets names of supported external parameters or null if parameters are not supported in principle
(Inherited from IExternallyParameterized.) |
![]() | ExternalSetParameter |
Sets external parameter value, true if parameter name was found and set succeeded
(Inherited from IExternallyParameterized.) |
![]() | 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
(Inherited from ICache.) |
![]() | 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
(Inherited from ICache.) |
![]() | GetTable TKey |
Returns existing table by name, if it does not exist thorws.
The TKey must correspond to existing table
(Inherited from ICache.) |
![]() | PurgeAll |
Removes all data from all tables stored in the cache
(Inherited from ICache.) |
![]() | SignalStop |
Non-blocking call that initiates the stopping of the service
(Inherited from IService.) |
![]() | Start |
Blocking call that starts the service instance
(Inherited from IService.) |
![]() | WaitForCompleteStop |
Blocks execution of current thread until this service has completely stopped
(Inherited from IService.) |
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
(Inherited from ICache.) |
![]() | DefaultTableOptions |
Sets default options for a table which is not found in TableOptions collection.
If this property is null then every table assumes the set of constant values defined in Table class
|
![]() | ExternalParameters |
Gets names/types of supported external parameters or null if parameters are not supported in principle
(Inherited from IExternallyParameterized.) |
![]() | InstrumentationEnabled |
Turns on/off instrumentation
(Inherited from IInstrumentable.) |
![]() | Locality |
Returns whether the cache key:value mappings are local or distributed
(Inherited from ICache.) |
![]() | Name | (Inherited from INamed.) |
![]() | Persistence |
Returns the model of key:value mapping persistence that this cache supports
(Inherited from ICache.) |
![]() | PileAllocMode |
Defines modes of allocation: space/time tradeoff
|
![]() | PileMaxMemoryLimit |
Imposes a limit on maximum number of bytes that a pile can allocate of the system heap.
The default value of 0 means no limit, meaning - the pile will keep allocating objects
until the system allows. If the limit is reached, then the cache will start deleting
older objects to releave the memory load even if they are not due for expiration yet
|
![]() | PileStatus |
Returns the status of the pile where object are stored
(Inherited from ICache.) |
![]() | Running |
Returns true when service is active or about to become active.
Check in service implementation loops/threads/tasks
(Inherited from IService.) |
![]() | Status |
Current service status
(Inherited from IService.) |
![]() | TableOptions |
Returns table options - used for table creation
|
![]() | Tables |
Tables that this cache contains
(Inherited from ICache.) |
See Also