keyv-fs-sync

0.1.0 • Public • Published

Build Status license BlueOak-1.0.0

Keyv FS Sync

A pretty simple filesystem based backend for Keyv.

Status: prototype

Motivation

My use-case was to have a simple, transparent, filesystem based cache for HTTP requests (using got). But as I would be storing binary data, using keyv-file would grow out of hand.

This library uses very simple filesystem operations to implement the Map API. Get = reading a file. Set = writing a file. Delete = deleting a file. etc...

Again for simplicity sake, this uses the node.js synchronous filesystem API. Should this be a bottleneck for you somehow, you probably need something more elaborate than this library anyway. Try Redis instead?

Other work

keyv-fs exists, but seems unmaintained and has a number uneccesary dependencies.

Readme

Keywords

none

Package Sidebar

Install

npm i keyv-fs-sync

Weekly Downloads

0

Version

0.1.0

License

BlueOak-1.0.0

Unpacked Size

4.67 kB

Total Files

4

Last publish

Collaborators

  • beanow