An open API service indexing awesome lists of open source software.

https://github.com/seldszar/catbox-hyperdb

Another HyperDB adapter for Catbox.
https://github.com/seldszar/catbox-hyperdb

adapter catbox hyperdb nodejs

Last synced: 1 day ago
JSON representation

Another HyperDB adapter for Catbox.

Awesome Lists containing this project

README

          

# catbox-hyperdb

Another HyperDB adapter for Catbox.

## Table of Contents

- [Installation](#installation)
- [Usage](#usage)
- [Author](#author)
- [License](#license)

## Installation

```bash
npm install seldszar/catbox-hyperdb hyperdb --save
```

## Usage

```javascript
const catbox = require('catbox');

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

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

```javascript
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](https://twitter.com/0xSeldszar)

## License

MIT © [Alexandre Breteau](https://seldszar.fr)