Keyv Versions Save

Simple key-value storage with support for multiple backends

2023-10-07

8 months ago

Package Updates 🚀

What's Changed

New Contributors

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

2023-09-16

8 months 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

2023-09-04

9 months ago

Package Updates 🍾

What's Changed

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

2023-08-19

9 months 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

2023-08-06

10 months 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

2023-07-16

10 months ago

Package Updates 🚀

What's Changed

New Contributors

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

2023-07-01

11 months 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

2023-06-26

11 months ago

Postgres (v1.4.7)

New Contributors

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

2023-06-18

11 months ago

Package Updates

  • MySql (v1.6.8) - updating mysql2 module to the latest version 🥂
  • Postgres (v1.4.6) - updated to typescript 🎉

What's Changed

New Contributors

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

2023-06-03

1 year ago

Package Updates 🍻

  • Memcache v1.4.0 - Migrated to Typescript!
  • Redis v2.6.0 - Migrated to Typescript and a fix for maximum call stack size. Thanks @AuspeXeu 👏

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2023-05-20...2023-06-03