Exemple #1
0
        public static void Put <T>(this IBucket bucket, string key, T value)
        {
            var item = bucket.GetItem(key);

            item.Put(value);
        }
Exemple #2
0
        public static T Get <T>(this IBucket bucket, string key)
        {
            var item = bucket.GetItem(key);

            return(item.Get <T>());
        }
Exemple #3
0
        public static bool TryGet <T>(this IBucket bucket, string key, out T value)
        {
            var item = bucket.GetItem(key);

            return(item.TryGet(out value));
        }
        public static void Delete(this IBucket bucket, string key)
        {
            var item = bucket.GetItem(key);

            item.Delete();
        }