using System.Collections.Generic;
|
using Microsoft.Extensions.Caching.Memory;
|
|
namespace IStation
|
{
|
/// <summary>
|
/// interface used to call operations directly on the wrapped memory cache
|
/// </summary>
|
internal interface IMemoryCacheDirect
|
{
|
/// <summary>
|
/// This sets to the wrapped memory cache directly
|
/// </summary>
|
/// <param name="key"></param>
|
/// <param name="value"></param>
|
/// <param name="policy"></param>
|
void Set(string key, object value, int? seconds);
|
|
/// <summary>
|
/// This removes from the wrapped memory cache directly
|
/// </summary>
|
/// <param name="key"></param>
|
void Remove(string key);
|
|
/// <summary>
|
/// This removes from the wrapped memory cache directly
|
/// </summary>
|
/// <param name="keys"></param>
|
int Remove(IEnumerable<string> keys);
|
|
/// <summary>
|
/// This removes from the wrapped memory cache directly
|
/// </summary>
|
/// <param name="key"></param>
|
int Remove_StartWith(string key);
|
|
}
|
}
|