tangxu
2022-10-31 8ea88fedd51e4961d0fd0aec6c2873a579fb6db8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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);
 
    }
}