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

GetAsync() 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 GetAsync ( RedisKey key ) : Task
key RedisKey /// The key. ///
return Task
                public static Task<RedisValue> GetAsync(RedisKey key)
                {
                    var result = SharedCache.Instance.GetReadConnection(key)
                        .GetDatabase(SharedCache.Instance.Db)
                        .StringGetAsync(key);

                    return result;
                }

Same methods

Cache.Shared.Strings::GetAsync ( RedisKey key, System.TimeSpan expire ) : Task
Cache.Shared.Strings::GetAsync ( RedisKey key, int start, int end ) : Task
Cache.Shared.Strings::GetAsync ( RedisKey keys ) : Task