chaosbot/ChaosBot/Services/ICache.cs

13 lines
252 B
C#

using System;
namespace ChaosBot.Services
{
public interface ICache<T, TU>
{
void Invalidate();
void Add(T key, TU value, DateTime expires);
void Remove(T key);
TU Get(T key);
bool HasKey(T key);
}
}