Releases: mmkal/handy-redis
Releases · mmkal/handy-redis
v2.3.1
v2.3.0
v2.2.2
v2.2.1
v2.2.0
v2.1.0
v2.0.3
handy-redis 2.0.2
handy-redis 2.0.1
handy-redis 2.0.0
Breaking changes:
- command signatures updated, some are now more strict
any
s have been replaced withunknown
s- new commands added
execMulti
is removed in favour of.multi().exec()
, which is promisified- multi pipelines now keep track of types
.batch
support added (fixes #45).script('LOAD')
and other subcommands added (fixes #221)addNodeRedisCommand
exposed (fixes #176)redis
removed as a dependency. It must be added separately- deprecated functions/properties/interfaces (the old forms are preserved for backwards-compatibility, but update if possible):
- clients should now be created with
createNodeRedisClient
rather thancreateHandyClient
WrappedNodeRedisClient
is now preferred toIHandyRedis
client.nodeRedis
preferred toclient.redis
- clients should now be created with
- lots of internal tidyup of code-generation code
Basic usage is identical, aside from the recommended import name:
import { createNodeRedisClient } from 'handy-redis';
(async function() {
const client = createNodeRedisClient();
await client.set('foo', 'bar');
const foo = await client.get('foo');
console.log(foo); // 'bar'
})();