root / trunk / hammock / src / net35 / Hammock / Caching / ICache.cs @ 0eea575a
History | View | Annotate | Download (346 Bytes)
1 |
using System; |
---|---|
2 |
|
3 |
namespace Hammock.Caching |
4 |
{ |
5 |
public interface ICache |
6 |
{ |
7 |
void Insert(string key, object value); |
8 |
void Insert(string key, object value, DateTime absoluteExpiration); |
9 |
void Insert(string key, object value, TimeSpan slidingExpiration); |
10 |
|
11 |
T Get<T>(string key); |
12 |
void Remove(string key); |
13 |
} |
14 |
} |