Pavalisoft.Caching
1.2.1
A single unified Caching Api for both MemoryCache and DistributedCache implementations including CacheManager
|
Provides Api to interact with ICachePartition More...
Public Member Functions | |
CachePartition (string name, DateTimeOffset? absoluteExpiration, TimeSpan? absoluteExpirationRelativeToNow, TimeSpan? slidingExpiration, ICache cache, CacheItemPriority priority, long? size) | |
Creates an instance of CachePartition More... | |
Properties | |
string | Name [get] |
Gets ICachePartition name More... | |
DateTimeOffset? | AbsoluteExpiration [get] |
Gets an absolute expiration date for the cache entry in this ICachePartition. More... | |
TimeSpan? | AbsoluteExpirationRelativeToNow [get] |
Gets an absolute expiration time, relative to now in this ICachePartition. More... | |
TimeSpan? | SlidingExpiration [get] |
Gets how long a cache entry can be inactive (e.g. not accessed) before it will be removed in this ICachePartition. This will not extend the entry lifetime beyond the absolute expiration (if set). More... | |
CacheItemPriority | Priority [get] |
Gets the CacheItemPriority applicable for this ICachePartition More... | |
long? | Size [get] |
Gets the Size of the ICachePartition More... | |
ICache | Cache [get, set] |
Gets or Sets the ICache instance. More... | |
![]() | |
string | Name [get] |
Gets ICachePartition name More... | |
DateTimeOffset? | AbsoluteExpiration [get] |
Gets an absolute expiration date for the cache entry in this ICachePartition. More... | |
TimeSpan? | AbsoluteExpirationRelativeToNow [get] |
Gets an absolute expiration time, relative to now in this ICachePartition. More... | |
TimeSpan? | SlidingExpiration [get] |
Gets how long a cache entry can be inactive (e.g. not accessed) before it will be removed in this ICachePartition. This will not extend the entry lifetime beyond the absolute expiration (if set). More... | |
CacheItemPriority | Priority [get] |
Gets the CacheItemPriority applicable for this ICachePartition More... | |
long? | Size [get] |
Gets the Size of the ICachePartition More... | |
ICache | Cache [get, set] |
Gets or Sets the ICache instance. More... | |
Provides Api to interact with ICachePartition
Pavalisoft.Caching.CachePartition.CachePartition | ( | string | name, |
DateTimeOffset? | absoluteExpiration, | ||
TimeSpan? | absoluteExpirationRelativeToNow, | ||
TimeSpan? | slidingExpiration, | ||
ICache | cache, | ||
CacheItemPriority | priority, | ||
long? | size | ||
) |
Creates an instance of CachePartition
name | Cache Partition Name |
absoluteExpiration | An absolute expiration date for the cache entry in this ICachePartition. |
absoluteExpirationRelativeToNow | An absolute expiration time, relative to now in this ICachePartition. |
slidingExpiration | Sliding expiration time for the cache entry in this ICachePartition. |
cache | ICache associated with cache partition |
priority | CacheItemPriority to be applied to the cache items in this ICachePartition |
size | ICachePartition size |
|
get |
Gets an absolute expiration date for the cache entry in this ICachePartition.
|
get |
Gets an absolute expiration time, relative to now in this ICachePartition.
|
getset |
Gets or Sets the ICache instance.
|
get |
Gets ICachePartition name
|
get |
Gets the CacheItemPriority applicable for this ICachePartition
|
get |
Gets the Size of the ICachePartition
|
get |
Gets how long a cache entry can be inactive (e.g. not accessed) before it will be removed in this ICachePartition. This will not extend the entry lifetime beyond the absolute expiration (if set).