Waste/Nirvana.Common/Cache/ICaches.cs

15 lines
401 B
C#
Raw Permalink Normal View History

2021-05-27 16:58:40 +08:00
using System;
using System.Collections.Generic;
using System.Text;
namespace Nirvana.Common
{
public interface ICaches
{
T GetCache<T>(string cacheKey) where T : class;
void WriteCache<T>(T value, string cacheKey) where T : class;
void WriteCache<T>(T value, string cacheKey, DateTime expireTime) where T : class;
void RemoveCache(string cacheKey);
}
}