Files
Yi.Framework/CC.Yi.Common/Cache/ICacheWriter.cs
454313500@qq.com dc4429d66c v1.0.3
2021-03-21 15:51:49 +08:00

32 lines
851 B
C#

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);
}
}