Skip to content

Commit 6ee56b2

Browse files
committed
Merge pull request #300 from dguo/patch-1
docs(README): add warning for key prefixing with some commands
2 parents 79b9feb + fc616b5 commit 6ee56b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ This feature allows you to specify a string that will automatically be prepended
348348
to all the keys in a command, which makes it easier to manage your key
349349
namespaces.
350350

351+
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.
352+
351353
```javascript
352354
var fooRedis = new Redis({ keyPrefix: 'foo:' });
353355
fooRedis.set('bar', 'baz'); // Actually sends SET foo:bar baz

0 commit comments

Comments
 (0)