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.
- Host: GitHub
- URL: https://github.com/seldszar/catbox-hyperdb
- Owner: Seldszar
- License: mit
- Created: 2018-04-28T20:55:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-28T16:52:41.000Z (almost 8 years ago)
- Last Synced: 2025-03-11T09:53:29.965Z (about 1 year ago)
- Topics: adapter, catbox, hyperdb, nodejs
- Language: JavaScript
- Size: 156 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)