public bool Exists(CacheKey key) { bool result = this.DoExists(key); this.Signal(); return result; }
public CacheValue this[CacheKey key] { get { return this.proxy[key]; } set { this.proxy[key] = value; } }
public CacheValue this[CacheKey key] { get { return this.DoGet(key); } set { this.DoSet(key, value); } }
public bool Exists(CacheKey key) { return this.proxy.Exists(key); }
public static CacheKey Create(long key) { CacheKey cachekey = new CacheKey(key); return cachekey; }
public static CacheKey Create(params string[] keys) { CacheKey cachekey = new CacheKey(keys); return cachekey; }
protected abstract bool DoExists(CacheKey key);
protected abstract bool DoSet(CacheKey key, CacheValue value);
protected abstract CacheValue DoGet(CacheKey key);
public CacheItem(CacheKey key, CacheValue value) { this.key = key; this.value = value; }
protected override bool DoExists(CacheKey key) { return this.scheduler.Exists(key); }
protected override bool DoSet(CacheKey key, CacheValue value) { return this.scheduler.Set(key, value); }
protected override CacheValue DoGet(CacheKey key) { return this.scheduler.Get(key); }