0.0.4 • Published 7 months ago

@hacksaw/gkv v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

KV for Google Cloud, backed by Cloud Storage

Installation

npm install @hacksaw/gkv
pnpm add @hacksaw/gkv
yarn add @hacksaw/gkv

Usage

import { Storage } from '@google-cloud/storage';
import { GKV } from '@hacksaw/gkv';

const bucket = "my-bucket"
const storage = new Storage();

const kv = new GKV<string, string>({ bucket, storage })

await kv.set('my-key', 'some value')

const value = await kv.get("my-key")

console.log(value) // 'some value'

!NOTE Visit Github to see more examples

0.0.4

7 months ago

0.0.3

9 months ago

0.0.2

10 months ago

0.0.1

10 months ago