From fc616b5d5f883e4fc2458d27ddee1d1182a73bf7 Mon Sep 17 00:00:00 2001 From: Danny Guo Date: Tue, 10 May 2016 23:57:50 -0400 Subject: [PATCH] docs(README): add warning for key prefixing with some commands --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c0a6be1f..7e722cb1 100644 --- a/README.md +++ b/README.md @@ -348,6 +348,8 @@ This feature allows you to specify a string that will automatically be prepended to all the keys in a command, which makes it easier to manage your key namespaces. +Warning: this feature won't apply to commands like [KEYS](http://redis.io/commands/KEYS) and [SCAN](http://redis.io/commands/scan) that take patterns rather than actual keys. See [#239](https://github.com/luin/ioredis/issues/239) for details. + ```javascript var fooRedis = new Redis({ keyPrefix: 'foo:' }); fooRedis.set('bar', 'baz'); // Actually sends SET foo:bar baz