0.2.0 • Published 2 years ago

dache-client v0.2.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

dache-client

Introduction

A client for dache.

Getting started

npm install --save dache-client
import { FetchDacheClient } from "dache-client";

const dacheClient = new FetchDacheClient("http://localhost:8080");

const key = "example";
await dacheClient.set(key, "hello world");

let entry = await dacheClient.get(key);
// "hello world"
console.log(entry?.value);

await dacheClient.delete(key);
entry = await dacheClient.get(key);
// null
console.log(entry);