Simple key-value storage with support for multiple backends
Full Changelog: https://github.com/jaredwray/keyv/compare/2023-09-16...2023-10-07
Full Changelog: https://github.com/jaredwray/keyv/compare/2023-09-04...2023-09-16
Full Changelog: https://github.com/jaredwray/keyv/compare/2023-08-19...2023-09-04
Full Changelog: https://github.com/jaredwray/keyv/compare/2023-08-06...2023-08-19
Full Changelog: https://github.com/jaredwray/keyv/compare/2023-07-16...2023-08-06
index.d.ts
(https://github.com/jaredwray/keyv/pull/805)keyv-momento
to 3rd party storage adapters by @eaddingtonwhite in https://github.com/jaredwray/keyv/pull/866
get<Raw>(...)
with an overload by @mmkal in https://github.com/jaredwray/keyv/pull/805
Full Changelog: https://github.com/jaredwray/keyv/compare/2023-07-01...2023-07-16
useRedisSets
OptionThe 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
):
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.
Here's how you can use the useRedisSets
option:
const Keyv = require('keyv');
const keyv = new Keyv('redis://user:pass@localhost:6379', { useRedisSets: false });
Full Changelog: https://github.com/jaredwray/keyv/compare/2023-06-26...2023-07-01
v1.4.6
has been broken with the wrong files being published to npm. 🍻Full Changelog: https://github.com/jaredwray/keyv/compare/2023-06-18...2023-06-26
Full Changelog: https://github.com/jaredwray/keyv/compare/2023-06-03...2023-06-18
Full Changelog: https://github.com/jaredwray/keyv/compare/2023-05-20...2023-06-03