Shuxia Ning
2024-11-06 adf8dc1c7cae1b12f486dcdb3d7daf4a5a59ec52
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 System.Runtime.Caching;
 
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, CacheItemPolicy policy);
 
        /// <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);
 
    }
}