32 lines
851 B
C#
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);
|
|
}
|
|
}
|