C# Class AzureTableStorageCache.AzureTableStorageCacheHandler

Inheritance: IDistributedCache
Mostra file Open project: TerribleDev/AzureTableStorageCache

Public Methods

Method Description
AzureTableStorageCacheHandler ( string connectionString, string tableName, string partitionKey ) : AzureTableStorageCache.Model
AzureTableStorageCacheHandler ( string accountName, string accountKey, string tableName, string partitionKey ) : AzureTableStorageCache.Model
Connect ( ) : void
ConnectAsync ( ) : System.Threading.Tasks.Task
Get ( string key ) : byte[]
GetAsync ( string key ) : Task
Refresh ( string key ) : void
RefreshAsync ( string key ) : System.Threading.Tasks.Task
Remove ( string key ) : void
RemoveAsync ( string key ) : System.Threading.Tasks.Task
Set ( string key, byte value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options ) : void
SetAsync ( string key, byte value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options ) : System.Threading.Tasks.Task

Private Methods

Method Description
AzureTableStorageCacheHandler ( string tableName, string partitionKey ) : AzureTableStorageCache.Model
RetrieveAsync ( string key ) : Task
ShouldDelete ( CachedItem data ) : bool

Method Details

AzureTableStorageCacheHandler() public method

public AzureTableStorageCacheHandler ( string connectionString, string tableName, string partitionKey ) : AzureTableStorageCache.Model
connectionString string
tableName string
partitionKey string
return AzureTableStorageCache.Model

AzureTableStorageCacheHandler() public method

public AzureTableStorageCacheHandler ( string accountName, string accountKey, string tableName, string partitionKey ) : AzureTableStorageCache.Model
accountName string
accountKey string
tableName string
partitionKey string
return AzureTableStorageCache.Model

Connect() public method

public Connect ( ) : void
return void

ConnectAsync() public method

public ConnectAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Get() public method

public Get ( string key ) : byte[]
key string
return byte[]

GetAsync() public method

public GetAsync ( string key ) : Task
key string
return Task

Refresh() public method

public Refresh ( string key ) : void
key string
return void

RefreshAsync() public method

public RefreshAsync ( string key ) : System.Threading.Tasks.Task
key string
return System.Threading.Tasks.Task

Remove() public method

public Remove ( string key ) : void
key string
return void

RemoveAsync() public method

public RemoveAsync ( string key ) : System.Threading.Tasks.Task
key string
return System.Threading.Tasks.Task

Set() public method

public Set ( string key, byte value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options ) : void
key string
value byte
options Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions
return void

SetAsync() public method

public SetAsync ( string key, byte value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options ) : System.Threading.Tasks.Task
key string
value byte
options Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions
return System.Threading.Tasks.Task