public static IEnumerable <IBucketItem> GetItems(this IKeyValueStore keyValueStore, string bucketName) { var bucket = keyValueStore.GetBucket(bucketName); return(bucket.GetItems()); }
public static void Put <T>(this IKeyValueStore keyValueStore, string bucketName, string key, T value) { var bucket = keyValueStore.GetBucket(bucketName); bucket.Put(key, value); }
public static IBucketItem GetItem(this IKeyValueStore keyValueStore, string bucketName, string key) { var bucket = keyValueStore.GetBucket(bucketName); return(bucket.GetItem(key)); }