Ejemplo n.º 1
0
            public object Get(string key, CacheGetOptions options)
            {
                Platform.CheckForNullReference(key, "key");
                Platform.CheckForNullReference(options, "options");

                return(GetInternal(key, options));
            }
Ejemplo n.º 2
0
			public object Get(string key, CacheGetOptions options)
			{
				Platform.CheckForNullReference(key, "key");
				Platform.CheckForNullReference(options, "options");

				return GetInternal(key, options);
			}
Ejemplo n.º 3
0
		internal object Get(string cacheId, string key, CacheGetOptions options)
		{
			Platform.CheckForNullReference(key, "key");
			Platform.CheckForNullReference(options, "options");

			var cacheKey = GetItemCacheKey(cacheId, options.Region, key);

			var obj = _cache.Get(cacheKey);
			if (obj == null)
				return null;

			var entry = (DictionaryEntry)obj;
			return key.Equals(entry.Key) ? entry.Value : null;
		}
Ejemplo n.º 4
0
        internal object Get(string cacheId, string key, CacheGetOptions options)
        {
            Platform.CheckForNullReference(key, "key");
            Platform.CheckForNullReference(options, "options");

            var cacheKey = GetItemCacheKey(cacheId, options.Region, key);

            var obj = _cache.Get(cacheKey);

            if (obj == null)
            {
                return(null);
            }

            var entry = (DictionaryEntry)obj;

            return(key.Equals(entry.Key) ? entry.Value : null);
        }
			public object Get(string key, CacheGetOptions options)
			{
				ValueOptionsPair value;
				return _cache.TryGetValue(key, out value) ? value.Value : null;
			}
Ejemplo n.º 6
0
 private object GetInternal(string key, CacheGetOptions options)
 {
     return(_logicalCache.GetRegion(options.Region).Get(key));
 }
Ejemplo n.º 7
0
			private object GetInternal(string key, CacheGetOptions options)
			{
				return _logicalCache.GetRegion(options.Region).Get(key);
			}