예제 #1
0
        public bool Exists(CacheKey key)
        {
            bool result = this.DoExists(key);

            this.Signal();

            return result;
        }
예제 #2
0
파일: Cache.cs 프로젝트: panawala/Cache.NET
        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
파일: Cache.cs 프로젝트: panawala/Cache.NET
 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);
 }