v1.0.3
This commit is contained in:
31
CC.Yi.Common/Cache/ICacheWriter.cs
Normal file
31
CC.Yi.Common/Cache/ICacheWriter.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user