public TimestampedCacheValue Get(string key) { var value = _cache.Get(key); return(value == null ? null : TimestampedCacheValue.FromString(value)); }
public DateTime?GetCreationTimestamp(string key) { var value = _cache.GetStringStart(key, TimestampedCacheValue.MaxDateLength); return(value == null ? (DateTime?)null : TimestampedCacheValue.FromString(value).CreateCommenced); }
public void Set(string key, TimestampedCacheValue val, TimeSpan absoluteExpiration) { _cache.Set(key, val.ToString(), absoluteExpiration); }