Keyv

k/v store for JS.

Visit website ↗

Console’s review

· Reviewed by David Mytton

What we like

Super simple k/v store API for JS. Defaults to in-memory with no dependencies, but has adapters for Redis, Mongo, SQLite, Postgres, MySQL. Handles all JSON types (supports custom serialization) with a Promise-based API. Supports TTLs and namespaces. Open source. Plugins for extra functionality e.g. memoize a function.

Tradeoffs

Limited to set, get, has, delete and clear functions. If you want more sophisticated options e.g. increment or setting fields on a hash, you’ll need to use something else e.g. Redis.

Console is a free weekly newsletter with short reviews of developer tools, covering strengths and tradeoffs. This review reflects our assessment at publication. Read our selection criteria and learn about Console.

Discover your next favorite tool

Independent devtool reviews and the latest betas, in your inbox every Thursday. Free.