public bool IsUniqueName(string name, ApiCall call) { kKeyValue store = new kKeyValue(call.Context); var obj = store.get(name); return(obj == null); }
public void Deletes(List <string> ids, ApiCall call) { kKeyValue store = new kKeyValue(call.Context); foreach (var item in ids) { store.Remove(item); } }
public Dictionary <string, string> List(ApiCall call) { kKeyValue store = new kKeyValue(call.Context); Dictionary <string, string> allvalues = new Dictionary <string, string>(); foreach (var item in store) { allvalues.Add(item.Key, item.Value); } return(allvalues); }
public void Update(string key, string value, ApiCall call) { kKeyValue store = new kKeyValue(call.Context); store.set(key, value); }
public string Get(string key, ApiCall call) { kKeyValue store = new kKeyValue(call.Context); return(store.get(key)); }