From a8ea06314fb8677612018034777920a9678949f0 Mon Sep 17 00:00:00 2001 From: Kien Pham Date: Wed, 26 Apr 2017 18:29:27 -0700 Subject: [PATCH] use set example instead --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 75444e6027..8109a7679d 100644 --- a/README.md +++ b/README.md @@ -117,11 +117,11 @@ Please be aware that sending null, undefined and Boolean values will result in t # Redis Commands This library is a 1 to 1 mapping to [Redis commands](https://redis.io/commands). It is not a cache library so please refer to Redis commands page for full usage details. -Example setting key to auto expire using [setex command](https://redis.io/commands/setex) +Example setting key to auto expire using [SET command](https://redis.io/commands/set) ```js // this key will expires after 10 seconds -client.setex('myKey', 10, 'Awesome value!'); +client.set('key', 'value!', 'EX', 10); ```