BB.Caching.Cache.Shared.Strings.Get C# (CSharp) Method

Get() public static method

Get the value of key. If the key does not exist the special value nil is returned. An error is returned if the value stored at key is not a string, because GET only handles string values.
http://redis.io/commands/get
public static Get ( RedisKey key ) : RedisValue
key RedisKey /// The key. ///
return RedisValue
                public static RedisValue Get(RedisKey key)
                {
                    var result = SharedCache.Instance.GetReadConnection(key)
                        .GetDatabase(SharedCache.Instance.Db)
                        .StringGet(key);

                    return result;
                }

Same methods

Cache.Shared.Strings::Get ( RedisKey key, System.TimeSpan expire ) : RedisValue
Cache.Shared.Strings::Get ( RedisKey key, int start, int end ) : RedisValue
Cache.Shared.Strings::Get ( RedisKey keys ) : RedisValue[]