Skip to content

Another HyperDB adapter for Catbox.

License

Notifications You must be signed in to change notification settings

Seldszar/catbox-hyperdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

catbox-hyperdb

Another HyperDB adapter for Catbox.

Table of Contents

Installation

npm install seldszar/catbox-hyperdb hyperdb --save

Usage

const catbox = require('catbox');

const cache = new catbox.Client(require('catbox-hyperdb'), {
  path: '/path/to/database',
});

cache.start(() => {
  // ...
});
const catbox = require('catbox');
const hyperdb = require('hyperdb');

const cache = new catbox.Client(require('catbox-hyperdb'), {
  client: hyperdb('/path/to/database', {
    valueEncoding: 'json',
  }),
});

cache.start(() => {
  // ...
});

Author

Alexandre Breteau - @0xSeldszar

License

MIT © Alexandre Breteau

About

Another HyperDB adapter for Catbox.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published