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
| using System;
| using System.Collections.Generic;
| using System.Linq;
| using System.Text;
| using System.Threading.Tasks;
|
| namespace JiepeiWMS.Common
| {
| /// <summary>
| /// Redis缓存接口
| /// </summary>
| public interface IRedisCacheManager
| {
|
| //获取 Reids 缓存值
| string GetValue(string key);
|
| //获取值,并序列化
| TEntity Get<TEntity>(string key);
|
| //保存
| void Set(string key, object value, TimeSpan cacheTime);
|
| //判断是否存在
| bool Get(string key);
|
| //移除某一个缓存值
| void Remove(string key);
|
| //全部清除
| void Clear();
| }
| }
|
|