private static bool Store(ServerPool pool, StoreCommand mode, string key, byte[] value, ulong casValue, int offset, int length, TimeSpan validFor, DateTime expiresAt) { if (value == null) { return(false); } using (StoreOperation s = new StoreOperation(pool, mode, key, new ArraySegment <byte>(value, offset, length), casValue, validFor, expiresAt)) { s.Execute(); return(s.Success); } }
private static bool Store(ServerPool pool, StoreCommand mode, string key, object value, ulong casValue, TimeSpan validFor, DateTime expiresAt) { if (value == null) { return(false); } using (StoreOperation s = new StoreOperation(pool, mode, key, value, casValue, validFor, expiresAt)) { s.Execute(); return(s.Success); } }