public void Store(string key, object value, DateTime expiry) { Store set = new Store(new Key(key, hasher), value, expiry); CommandExecuter ce = new CommandExecuter(instances); try { ce.Execute(set); } catch { } }
public void BlockingDelete(string key) { BlockingDelete blockingDelete = new BlockingDelete(new Key(key, hasher)); CommandExecuter ce = new CommandExecuter(instances); try { ce.Execute(blockingDelete); } catch { } }
public uint? Increment(string key, long value) { Increment inc = new Increment(new Key(key, hasher), value); CommandExecuter ce = new CommandExecuter(instances); try { ce.Execute(inc); return inc.RetrievedValue; } catch { return null; } }
public object Get(string key) { Get get = new Get(new Key(key, hasher)); CommandExecuter ce = new CommandExecuter(instances); try { ce.Execute(get); return get.RetrievedObject; } catch { return null; } }
public void Set(string key, string value, DateTime dateTime) { Set set = new Set(new Key(key, hasher), value, dateTime); CommandExecuter ce = new CommandExecuter(instances); try { ce.Execute(set); } catch { } }