Description
Description | 1 | Commands | Description |
|---|---|---|
| 1 | Get key | Get the value of a key |
| 2 | Set key values | This command sets the values at the specified key |
| 3 | Get set key values | Set the string values of a key and return its old values |
| 4 | Get range key start end | Get a substring of the string stored at a key |
| 5 | Mget key1 [key2..] | Get the values of all the given keys |
| 6 | Setbit key offset values | Sets or clears the bits at bit at offset in the string values stored at key |
| 7 | Setex key seconds values | Set the values with expiry of a key |
| 8 | Setnx key values | Set the values with expiry of a key |
| 9 | Setnx key values | Set the values of a key, only if the key doesn't exists |
| 10 | Strlen key | Get the length of the values stored in a key |
| 11 | Mset key values[key values..] | Set multiple keys to multiple values |
| 12 | Psetex key milliseconds values | Set the values and expiration in milliseconds of a key |
| 13 | Incr key | Increment the integer values of a key by one |
| 14 | Incrby key increment | Increment the integer values of a key by the given amount |
| 15 | Decr key | Decrement the integer values of a key by one |
| 16 | Decrby key decrement | Decrement the integer values of a key by the given number |
| 17 | Append key values | Append a value to a key |
Syntax
Examples
Key Points