Beispiel #1
0
        public async Task <string> GetAsync(string key, bool ignorePrefix = false)
        {
            try
            {
                key = FormatKey(key, ignorePrefix);
                var database = _databaseProvider.Provide();
                if (!database.KeyExists(key))
                {
                    return(string.Empty);
                }
                var value = await database.StringGetAsync(key);

                return(value.ToString());
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }