keyv

Simple key-value storage with support for multiple backends

MIT License

Downloads
145.5M
Stars
2.5K
Committers
54

Bot releases are hidden (Show)

keyv - 2024-08-21

Published by jaredwray about 2 months ago

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2024-08-20...2024-08-21

keyv - 2024-08-20 - v5 Release!

Published by jaredwray 2 months ago

v5 of Keyv and Major Storage Adapters Updated

There a couple big BREAKING changes:

What's Changed

New Contributors

Full Changelog: https://github.com/jaredwray/keyv/compare/2023-12-02...2024-08-20

keyv - 2024-05-04 Latest Release

Published by jaredwray 6 months ago

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2024-03-16...2024-05-04

keyv - 2024-03-16

Published by jaredwray 7 months ago

MySQL (v1.7.4)

Upgraded the mysql2 module to its latest version

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2024-02-17...2024-03-16

keyv - 2024-02-17

Published by jaredwray 8 months ago

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2024-02-04...2024-02-17

keyv - 2024-02-04

Published by jaredwray 9 months ago

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2024-01-29...2024-02-04

keyv - 2024-01-29

Published by jaredwray 9 months ago

Redis Adding Non Set Namespace Support

add non set namespace support by @jaredwray in https://github.com/jaredwray/keyv/pull/989

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2024-01-08...2024-01-29

keyv - 2024-01-08

Published by jaredwray 10 months ago

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2024-01-06...2024-01-08

keyv - 2024-01-06

Published by jaredwray 10 months ago

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2023-10-07...2024-01-06

keyv - 2023-12-02

Published by jaredwray 11 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/jaredwray/keyv/compare/2023-11-19...2023-12-02

keyv - 2023-11-19

Published by jaredwray 11 months ago

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2023-11-12...2023-11-19

keyv - 2023-11-12

Published by jaredwray 11 months ago

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2023-10-07...2023-11-12

keyv - 2023-10-07

Published by jaredwray about 1 year ago

Package Updates 🚀

What's Changed

New Contributors

Full Changelog: https://github.com/jaredwray/keyv/compare/2023-09-16...2023-10-07

keyv - 2023-09-16

Published by jaredwray about 1 year ago

Package Updates 🍻

  • sqlite3 (v3.6.6) - replaced pify with promisify
  • mysql (v1.6.11) - upgrading mysql2 to 3.6.1
  • tiered (v1.0.6) - upgrading typescript to 5.2.2 and removing this module
  • redis (v2.7.1) - fixing but with passing in ioredis and options https://github.com/jaredwray/keyv/issues/902

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2023-09-04...2023-09-16

keyv - 2023-09-04

Published by jaredwray about 1 year ago

Package Updates 🍾

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2023-08-19...2023-09-04

keyv - 2023-08-19

Published by jaredwray about 1 year ago

Package Updates 🥇

  • Postgres (v1.4.9) - upgrading pg to 8.11.3
  • MySql (v1.6.10) - upgrading mysql2 to 3.6.0
  • Etcd (v1.2.1) - upgrading etcd3 to 1.1.2

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2023-08-06...2023-08-19

keyv - 2023-08-06

Published by jaredwray about 1 year ago

Package Updates

  • compress-brotli - upgraded brotli module to latest 🤖

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2023-07-16...2023-08-06

keyv - 2023-07-16

Published by jaredwray over 1 year ago

Package Updates 🚀

What's Changed

New Contributors

Full Changelog: https://github.com/jaredwray/keyv/compare/2023-07-01...2023-07-16

keyv - 2023-07-01

Published by jaredwray over 1 year ago

Redis v2.7.0 with useRedisSets Option

The useRedisSets option lets you decide whether to use Redis sets for key management. By default, this option is set to true.

When useRedisSets is enabled (true):

  • A namespace for the Redis sets is created, and all created keys are added to this. This allows for group management of keys.
  • When a key is deleted, it's removed not only from the main storage but also from the Redis set.
  • When clearing all keys (using the clear function), all keys in the Redis set are looked up for deletion. The set itself is also deleted.

Note: In high-performance scenarios, enabling useRedisSets might lead to memory leaks. If you're running a high-performance application or service, it is recommended to set useRedisSets to false.

If you decide to set useRedisSets as false, keys will be handled individually and Redis sets won't be utilized.

However, please note that setting useRedisSets to false could lead to performance issues in production when using the clear function, as it will need to iterate over all keys to delete them.

Example

Here's how you can use the useRedisSets option:

const Keyv = require('keyv');

const keyv = new Keyv('redis://user:pass@localhost:6379', { useRedisSets: false });

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2023-06-26...2023-07-01

keyv - 2023-06-26

Published by jaredwray over 1 year ago

Postgres (v1.4.7)

New Contributors

Full Changelog: https://github.com/jaredwray/keyv/compare/2023-06-18...2023-06-26

Package Rankings
Top 0.75% on Npmjs.org
Top 27.17% on Repo1.maven.org
Top 4.68% on Proxy.golang.org
Badges
Extracted from project README
build codecov npm npm