示例#1
0
        public bool IsUniqueName(string name, ApiCall call)
        {
            kKeyValue store = new kKeyValue(call.Context);
            var       obj   = store.get(name);

            return(obj == null);
        }
示例#2
0
        public void Deletes(List <string> ids, ApiCall call)
        {
            kKeyValue store = new kKeyValue(call.Context);

            foreach (var item in ids)
            {
                store.Remove(item);
            }
        }
示例#3
0
        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);
        }
示例#4
0
        public void Update(string key, string value, ApiCall call)
        {
            kKeyValue store = new kKeyValue(call.Context);

            store.set(key, value);
        }
示例#5
0
        public string Get(string key, ApiCall call)
        {
            kKeyValue store = new kKeyValue(call.Context);

            return(store.get(key));
        }