Namespace Arc4u.Caching
Classes
- BaseDistributeCache<T>
Base class of the ICache implementations built on top of a Microsoft IDistributedCache (memory, Redis, SQL Server). Values are serialized with an IObjectSerialization before being stored, and each operation is traced with an Arc4u ActivitySource when an IActivitySourceFactory is registered. A derived class must set DistributeCache and SerializerFactory and set IsInitialized in its Initialize(string) override; every data operation throws a CacheNotInitializedException until then.
- CacheContext
CacheContext is a helper class allowing to easily access the caches defined in the caching configuration section.
- CacheContextServicesExtension
Extension methods to register the caches described in the
Cachingconfiguration section.
- CacheEventArgs
Event argument to inform an action on the cache.
- CacheNotInitializedException
The exception thrown when a cache is used before it has been successfully initialized.
- DataCacheException
Exception used to encapsulate the error from the cache engine.
- KeyAlreadyRegisteredException
The exception thrown when a key is registered more than once.
- LoggerMessages
Source-generated log messages of the cache context.
Interfaces
- ICache
The interface defines the contract implemented by a cache.
- ICacheContext
Gives access to the caches declared in the
Cachingconfiguration section.
- ISecureCache
Used to implement a cache where the store is secure.
Enums
- CacheAction
The actions that can be performed on a cache entry. The values can be combined.