0.0.14 • Published 8 days ago
lexi-ts v0.0.14
Lexi-ts
a typescript/javascript library for interacting with LexiDB, an in-memory data structure database.
Install
npm
npm i lexi-ts
pnpm
pnpm add lexi-ts
yarn
yarn add lexi-ts
Usage
import { LexiClient } from "lexi-ts";
async function example() {
let client = new LexiClient("<addr>", <port>);
client.connect();
let setResult = await client.set("foo", "bar");
console.log(setResult); // "OK"
let getResult = await client.get("foo");
console.log(getResult);
let delResult = await client.del("foo");
console.log(delResult);
client.close();
}
example()
for a more thorough example, see examples/main.js