Skip to content

hacksawsoftware/gkv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@hacksaw/gkv

npm version

KV for Google Cloud, backed by Cloud Storage

Full generated docs are available at gkv.hacksaw.software

Installation

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

# via jsr
npx jsr add @hacksaw/gkv
pnpm dlx jsr add @hacksaw/gkv
yarn dlx jsr add @hacksaw/gkv
deno add jsr:@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'

Examples

Checkout examples in the /examples directory

About

KV for Google Cloud, backed by Cloud Storage

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors