Pavalisoft.Caching  1.2.1
A single unified Caching Api for both MemoryCache and DistributedCache implementations including CacheManager
Pavalisoft.Caching.CachePartition Class Reference

Provides Api to interact with ICachePartition More...

Inheritance diagram for Pavalisoft.Caching.CachePartition:
Pavalisoft.Caching.Interfaces.ICachePartition

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...
 
- Properties inherited from Pavalisoft.Caching.Interfaces.ICachePartition
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...
 

Detailed Description

Provides Api to interact with ICachePartition

Constructor & Destructor Documentation

◆ CachePartition()

Pavalisoft.Caching.CachePartition.CachePartition ( string  name,
DateTimeOffset?  absoluteExpiration,
TimeSpan?  absoluteExpirationRelativeToNow,
TimeSpan?  slidingExpiration,
ICache  cache,
CacheItemPriority  priority,
long?  size 
)

Creates an instance of CachePartition

Parameters
nameCache Partition Name
absoluteExpirationAn absolute expiration date for the cache entry in this ICachePartition.
absoluteExpirationRelativeToNowAn absolute expiration time, relative to now in this ICachePartition.
slidingExpirationSliding expiration time for the cache entry in this ICachePartition.
cacheICache associated with cache partition
priorityCacheItemPriority to be applied to the cache items in this ICachePartition
sizeICachePartition size

Property Documentation

◆ AbsoluteExpiration

DateTimeOffset? Pavalisoft.Caching.CachePartition.AbsoluteExpiration
get

Gets an absolute expiration date for the cache entry in this ICachePartition.

◆ AbsoluteExpirationRelativeToNow

TimeSpan? Pavalisoft.Caching.CachePartition.AbsoluteExpirationRelativeToNow
get

Gets an absolute expiration time, relative to now in this ICachePartition.

◆ Cache

ICache Pavalisoft.Caching.CachePartition.Cache
getset

Gets or Sets the ICache instance.

◆ Name

string Pavalisoft.Caching.CachePartition.Name
get

Gets ICachePartition name

◆ Priority

CacheItemPriority Pavalisoft.Caching.CachePartition.Priority
get

Gets the CacheItemPriority applicable for this ICachePartition

◆ Size

long? Pavalisoft.Caching.CachePartition.Size
get

Gets the Size of the ICachePartition

◆ SlidingExpiration

TimeSpan? Pavalisoft.Caching.CachePartition.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).


The documentation for this class was generated from the following file: