Another HyperDB adapter for Catbox.
npm install seldszar/catbox-hyperdb hyperdb --save
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(() => {
// ...
});
Alexandre Breteau - @0xSeldszar
MIT © Alexandre Breteau