This commit is contained in:
454313500@qq.com
2021-03-21 15:51:49 +08:00
parent 646cd16e40
commit dc4429d66c
8 changed files with 194 additions and 4 deletions

View File

@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CC.Yi.Common.Cache
{
public interface ICacheWriter
{
//void AddCache(string key, object value, DateTime expDate);
//void AddCache(string key, object value);
//object GetCache(string key);
//T GetCache<T>(string key);
//void SetCache(string key, object value, DateTime expDate);
//void SetCache(string key, object value);
//bool Delete(string key);
string Get(string key);
string GetString(string key);
void AddString(string key, string value);
void Add(string key, string value, int ExpirationTime = 20);
void Remove(string key);
void Replace(string key, string value, int ExpirationTime = 20);
}
}