Skip to content

Commit

Permalink
Merge pull request #160 from pensierinmusica/patch-1
Browse files Browse the repository at this point in the history
Added example in docs to create keys with expires
  • Loading branch information
luin committed Sep 25, 2015
2 parents cef4cce + c8bcac9 commit 589b484
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ redis.get('foo').then(function (result) {
// Arguments to commands are flattened, so the following are the same:
redis.sadd('set', 1, 3, 5, 7);
redis.sadd('set', [1, 3, 5, 7]);

// All arguments are passed directly to the redis server:
redis.set('key', 100, 'EX', 10);
```

## Connect to Redis
Expand Down

0 comments on commit 589b484

Please sign in to comment.