Ejemplo n.º 1
0
        public bool Exists(CacheKey key)
        {
            bool result = this.DoExists(key);

            this.Signal();

            return result;
        }
Ejemplo n.º 2
0
        public CacheValue this[CacheKey key]
        {
            get
            {
                return this.proxy[key];
            }

            set
            {
                this.proxy[key] = value;
            }
        }
Ejemplo n.º 3
0
        public CacheValue this[CacheKey key]
        {
            get
            {
                return this.DoGet(key);
            }

            set
            {
                this.DoSet(key, value);
            }
        }
Ejemplo n.º 4
0
 public bool Exists(CacheKey key)
 {
     return this.proxy.Exists(key);
 }
Ejemplo n.º 5
0
        public static CacheKey Create(long key)
        {
            CacheKey cachekey = new CacheKey(key);

            return cachekey;
        }
Ejemplo n.º 6
0
        public static CacheKey Create(params string[] keys)
        {
            CacheKey cachekey = new CacheKey(keys);

            return cachekey;
        }
Ejemplo n.º 7
0
 protected abstract bool DoExists(CacheKey key);
Ejemplo n.º 8
0
 protected abstract bool DoSet(CacheKey key, CacheValue value);
Ejemplo n.º 9
0
 protected abstract CacheValue DoGet(CacheKey key);
Ejemplo n.º 10
0
 public CacheItem(CacheKey key, CacheValue value)
 {
     this.key = key;
     this.value = value;
 }
Ejemplo n.º 11
0
 protected override bool DoExists(CacheKey key)
 {
     return this.scheduler.Exists(key);
 }
Ejemplo n.º 12
0
 protected override bool DoSet(CacheKey key, CacheValue value)
 {
     return this.scheduler.Set(key, value);
 }
Ejemplo n.º 13
0
 protected override CacheValue DoGet(CacheKey key)
 {
     return this.scheduler.Get(key);
 }