Skip to content

sensoris/semcache-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

semcache-node

A node sdk for github.com/sensoris/semcache

Quick start

Start the Semcache Docker image:

docker run -p 8080:8080 semcache/semcache:latest

Install semcache

npm install semcache

Use the sdk in your service

const SemcacheClient = require('semcache');

const client = new SemcacheClient('http://localhost:8080');

(async () => {
  await client.put('What is the capital of France?', 'Paris');

  const result = await client.get('What is the capital of France?');
  console.log(result); // => 'Paris'
})();

About

Node SDK for the Semcache API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published