Cheatography
https://cheatography.com
Strings | Append | | Count set bits | | Bitwise operations | | Find first set bit | | Decrement integer | | Subtract from integer | | Get by key | | Get bit by index | | Get substring | | Set, returning old value | | Increment integer | | Add to integer | | Add to float | | Get multiple | | Set multiple | | Set multiple if don't exist | | Set with expiry (ms) | | Set | | Set bit by index | | Set with expiry (seconds) | | Set if doesn't exist | | Set substring | | Get length |
Strings can be used as numbers, arrays, bit sets and binary data
Lists | Blocking left pop | | Blocking right pop | | Blocking rotate | | Access by index | | Insert next to | | Get length | | Pop from start | | Push onto start | | Push if list exists | | Access range | | Remove | | Set item by index | | Remove start and/or end items | | Pop from end | | Rotate | | Push onto end | | Push onto end if list exists |
Client/Server | Request authentication | | Return message | | Test connection | | Close connection | | Set current database by index |
| | Sets | Add item | | Get size | | Get difference | | Store difference | | Intersection | | Store intersection | | Check for item | | Get all | | Move item to another set | | Pop random item | | Get random item | | Remove matching | | Iterate items | | Union | | Store union |
Database | Delete item | | Serialise item | | Check for key | | Set timeout on item | | Set timeout by timestamp | | Get all keys matching pattern | | Transfer an item between Redis instances | | Transfer an item between databases | | Inspect item | | Remove timeout | | Set timeout (ms) | | Set timeout (ms timestamp) | | Get item time to live (ms) | | Get random key | | Change item's key | | Change item's key if new key doesn't exist | | Deserialise | | Iterate keys | | Get or store sorted copy of list, set or sorted set | | Get item time to live | | Get type of item |
Scripts | Run | | Run cached | | Check by hash | | Clear cache | | Kill running script | | Add to cache |
Lua scripts access keys through the array KEYS and additional arguments through the array ARGV.
| | Hashes | Delete item | | Check for item | | Get item | | Return all items | | Add to integer value | | Add to float value | | Return all keys | | Get number of items | | Get multiple items | | Set multiple items | | Iterate items | | Set item | | Set item if doesn't exist | | Return all values |
Sorted sets | Add item | | Get number of items | | Number of items within score range | | Add to score | | Store intersection | | Lexicographical range count | | Get items within rank range | | Get items within lexicographical range | | Get items within score range | | Get item rank | | Remove item(s) | | Remove items within lexicographical range | | Remove items within rank range | | Remove items within score range | | ZRANGE in reverse order | | ZRANGEBYSCORE in reverse order | | ZRANK in reverse order | | Iterate items | | Get item score | | Store union |
Lexicographical commands require all items to have the same score
HyperLogLogs | Add items | | Get approximate size | | Merge HyperLogLogs |
|
Created By
Metadata
Favourited By
and 13 more ...
Comments
Nice ! It will be shared in our next RedisWeekly !
The description for SETEX seems to be have been replaced by the one of SETNX
Many thanks!
Download Page Not Found !!!!!!
Add a Comment
Related Cheat Sheets