Access Redis and run Redis commands.
Create a new Redis client connection. The return value is an object for performing redis commands.
Type | Description |
---|---|
string |
Address and port of Redis, default: 127.0.0.1:6379 |
string |
Password, default: "" |
number |
Database, default: 0 |
Set key to hold the string value. If key already holds a value, it is overwritten, regardless of its type. Any previous time to live associated with the key is discarded on successful SET operation.
Sets field in the hash stored at key to value from a table(map). If key does not exist, a new key holding a hash is created. If field already exists in the hash, it is overwritten.
Removes the specified fields from the hash stored at key. Specified fields that do not exist within this hash are ignored. If key does not exist, it is treated as an empty hash and this command returns 0.