示例#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);
 }