Skip to content

Commit

Permalink
Merge pull request #300 from dguo/patch-1
Browse files Browse the repository at this point in the history
docs(README): add warning for key prefixing with some commands
  • Loading branch information
luin committed May 11, 2016
2 parents 79b9feb + fc616b5 commit 6ee56b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ee56b2

Please sign in to comment.