logo

Releases

2024-09-27 September 27, 2024

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2024-09-22...2024-09-27

2024-09-22 September 22, 2024

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2024-09-21...2024-09-22

2024-09-21 September 21, 2024

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2024-09-07...2024-09-21

2024-09-07 September 07, 2024

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2024-09-05...2024-09-07

2024-09-05 September 05, 2024

What's Changed

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

2024-08-21 August 21, 2024

What's Changed

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

2024-08-20 - v5 Release! August 20, 2024

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

2024-05-04 May 04, 2024

What's Changed

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

2024-03-16 March 16, 2024

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

2024-02-17 February 17, 2024

What's Changed

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

2024-02-04 February 04, 2024

What's Changed

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

2024-01-29 January 29, 2024

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

2024-01-08 January 08, 2024

What's Changed

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

2024-01-06 January 06, 2024

What's Changed

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

2023-12-02 December 02, 2023

What's Changed

New Contributors

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

2023-11-19 November 19, 2023

What's Changed

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

2023-11-12 November 13, 2023

What's Changed

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

2023-10-07 October 07, 2023

Package Updates 🚀

What's Changed

New Contributors

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

2023-09-16 September 16, 2023

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 September 04, 2023

Package Updates 🍾

What's Changed

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

2023-08-19 August 19, 2023

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 August 06, 2023

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 July 16, 2023

Package Updates 🚀

What's Changed

New Contributors

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

2023-07-01 July 01, 2023

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:

```js
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 June 26, 2023

Postgres (v1.4.7)

New Contributors

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

2023-06-18 June 18, 2023

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 June 03, 2023

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

2023-05-20 May 21, 2023

Package Updates 👏

  • Mongo (v2.2.8) - migrated to typescript! 🎉
  • Postgres (v1.4.5) - upgraded pg to 8.11.0
  • MySQL (v1.6.6) - upgraded mysql2 to 3.3.1 and also fixed parsing of more complex uri connection strings referenced here: https://github.com/jaredwray/keyv/issues/809#issuecomment-1556054440

What's Changed

New Contributors

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

2023-05-07 May 07, 2023

Package Updates 🎉

  • Redis v2.5.8 - Upgrading ioredis to 5.3.2
  • MySQL v1.6.5 - moving to correct pool configuration object and upgrading mysql2 to 3.2.3

What's Changed

New Contributors

Full Changelog: https://github.com/jaredwray/keyv/compare/2023-04-15...2023-05-07

2023-04-15 April 15, 2023

Package Releases 🍻

  • Etcd (v1.2.0) - Full rewrite to typescript and module updates!
  • MySQL (v1.6.3) - `mysql2` upgraded to latest.

What's Changed

Full Changelog: https://github.com/jaredwray/keyv/compare/2023-04-03...2023-04-15