public async Task <T> Get(Guid key, string prefix = "")
        {
            var cacheKey = string.IsNullOrEmpty(prefix) ? key.ToString() : $"{prefix}:{key}";
            var value    = await _db.StringGetAsync(cacheKey).ConfigureAwait(false);

            return(value.IsNullOrEmpty ? null : SagaSerializer.Deserialize <T>(value));
        }
 public async Task Put(Guid key, T value, string prefix = "")
 {
     var cacheKey = string.IsNullOrEmpty(prefix) ? key.ToString() : $"{prefix}:{key}";
     await _db.StringSetAsync(cacheKey, SagaSerializer.Serialize(value)).ConfigureAwait(false);
 }