public CachedObject Get(CacheKey key) { CachedObject retVal; TotalCount++; if (!_cache.TryGetValue(key.Key, out retVal)) { MissCount++; } return retVal; }
public void Put(CacheKey key, CachedObject cachedObj, TimeSpan expirationTimeout) { _cache[key.Key] = cachedObj; }
public TimeSpan GetExpirationTimeout(CacheKey key) { return TimeSpan.FromDays(1); }