You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code snippet returns empty array for 'keys' command.
constRedis=require('ioredis');constredis=newRedis({keyPrefix: 'foo:'});// set the namespaceredis.set('bar:baz',1).then(()=>{returnredis.keys('bar:*').then((keys)=>{console.log(keys);// output is []. shouldn't it be ["foo:bar:baz"] ?});}).catch((error)=>{console.log(error);});
It appears that redis.keys command does not add foo: namespace.
The text was updated successfully, but these errors were encountered:
apostopher
changed the title
keyPrefix does't work in 'redis.keys' command
keyPrefix in 'redis.keys' command
Feb 12, 2016
The following code snippet returns empty array for 'keys' command.
It appears that
redis.keys
command does not addfoo:
namespace.The text was updated successfully, but these errors were encountered: