diff --git a/README.md b/README.md index 5b84e186..71542bba 100644 --- a/README.md +++ b/README.md @@ -304,11 +304,11 @@ listenForMessage(); ## Expiration -Redis can set a timeout to expire your key, after the timeout has expired the key will be automatically deleted. (You can find the [official Expire documentation](https://redis.io/commands/expire/) to understand better the different parameters you can use), to set your key to expire in 1000 seconds, we will have the following code: +Redis can set a timeout to expire your key, after the timeout has expired the key will be automatically deleted. (You can find the [official Expire documentation](https://redis.io/commands/expire/) to understand better the different parameters you can use), to set your key to expire in 60 seconds, we will have the following code: ```javascript -redis.set("key", "data", "EX", 1000); -// Equivalent to redis command "SET key data EX 1000", because on ioredis set method, +redis.set("key", "data", "EX", 60); +// Equivalent to redis command "SET key data EX 60", because on ioredis set method, // all arguments are passed directly to the redis server. ``` @@ -898,8 +898,8 @@ If you do not want to use a connection string, you can also specify an empty `tl ```javascript const redis = new Redis({ - host: 'redis.my-service.com', - tls: {} + host: "redis.my-service.com", + tls: {}, }); ```