0.2.0 • Published 2 years ago
dache-client v0.2.0
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);
0.2.0
2 years ago