Beispiel #1
0
 public void SetCollection <T>(Key key, IEnumerable <T> values, ulong cas)
 {
     _retryStrategy.ExecuteDelegateWithRetry(
         () =>
         StoreProvider.Set(key, String.Concat(values.Select(s => Serializer.Serialize(s))), cas)
         );
 }
Beispiel #2
0
 public void Set <T>(Key key, T value, ulong cas, DateTime expires)
 {
     _retryStrategy.ExecuteDelegateWithRetry(
         () => StoreProvider.Set(key, Serializer.Serialize(value), cas, expires));
 }
Beispiel #3
0
 public void Set <T>(Key key, T value, TimeSpan expiresIn)
 {
     _retryStrategy.ExecuteDelegateWithRetry(
         () => StoreProvider.Set(key, Serializer.Serialize(value), expiresIn));
 }
Beispiel #4
0
 public void Set <T>(Key key, T value)
 {
     _retryStrategy.ExecuteDelegateWithRetry(
         () => StoreProvider.Set(key, Serializer.Serialize(value)));
 }