Beispiel #1
0
 /// <summary>
 /// Get a Document and Locks it for a specified time async
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="key"></param>
 /// <param name="expiration"></param>
 /// <returns></returns>
 public async Task <IOperationResult <T> > GetAndLockAsync <T>(string key, TimeSpan expiration)
 {
     return(await _bucket.GetAndLockAsync <T>(key.ToLower(), expiration));
 }