Пример #1
0
        public bool Exists(CacheKey key)
        {
            bool result = this.DoExists(key);

            this.Signal();

            return result;
        }
Пример #2
0
        public CacheValue this[CacheKey key]
        {
            get
            {
                return this.proxy[key];
            }

            set
            {
                this.proxy[key] = value;
            }
        }
Пример #3
0
        public CacheValue this[CacheKey key]
        {
            get
            {
                return this.DoGet(key);
            }

            set
            {
                this.DoSet(key, value);
            }
        }
Пример #4
0
 public bool Exists(CacheKey key)
 {
     return this.proxy.Exists(key);
 }
Пример #5
0
        public static CacheKey Create(long key)
        {
            CacheKey cachekey = new CacheKey(key);

            return cachekey;
        }
Пример #6
0
        public static CacheKey Create(params string[] keys)
        {
            CacheKey cachekey = new CacheKey(keys);

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