redis
42 blocks in 5 groups. Open a block for its pins, an example and how it behaves.
redis
- decrement
numberv11.0.0Decrements the number stored at key by one. If the key does not exist, it is set to0before performing the operation. - get cache
valuev11.0.0get redis cache - set json
conditionv13.0.8Set key to hold the string value. If key already holds a value, it is overwritten, regardless of its type. - rate limit
conditionv15.0.0Counts calls per registered key and reports whether this one is still within the limit. Replaces the incr-key + ttl + condition chain every API blueprint used to build by hand: pick a key that identifies the caller (for example one with a{ip:value}placeholder), a limit, and a window. Rejected calls count towards the limit as well. - increment
numberv11.0.0Increments the number stored at key by one. If the key does not exist, it is set to0before performing the operation. - get cache key
conditionv13.0.6gets the key and returnstrueorfalsebased of its existence, makes it easier for cache-management in flows - set cache ttl
valuev11.0.0set the time to live in seconds - get cache json key
conditionv13.0.8gets the key and returnstrueorfalsebased of its existence, makes it easier for cache-management in flows - set
conditionv11.0.0Set key to hold the string value. If key already holds a value, it is overwritten, regardless of its type. - get cache ttl
numberv11.0.0get the time to live in seconds - delete
conditionv11.0.0Removes the specified key and their values. - exists
conditionv11.0.0Checks if the key already exists
redis bloom
- bf exists
conditionv14.0.4Check if an item may exist in a Bloom filter. Returnstrueif the item may exist (with the configured false-positive rate),falseif it definitely does not exist. - bf madd
arrayv14.0.4Add multiple items to a Bloom filter at once. Creates the filter if it does not exist. - bf add
conditionv14.0.4Add an item to a Bloom filter. Creates the filter if it does not exist. - bf mexists
arrayv14.0.4Check if multiple items may exist in a Bloom filter. Returns an array of booleans. - bf reserve
conditionv14.0.4Create a new Bloom filter with a given error rate and initial capacity. The filter will auto-scale if capacity is exceeded.
redis lists
- rpop
valuev13.0.7remove and get the last element in a list - push array
conditionv13.0.7prepend multiple elements to a list - get by index
valuev13.0.7Get an element from a list by its index - pop
valuev13.0.7Remove and get the first element in a list - rpushx
conditionv13.0.7append an element to a list, only if the list exists - set
valuev13.0.7set the value of an element in a list by its index - remove
numberv13.0.7removes the first count occurrences of elements equal to element - trim
valuev13.0.7trim a list to the specified range - range
arrayv13.0.7get a range of elements from a list. Use start 0 and stop -1 to retrieve all items. - push
conditionv13.0.7prepend one element to a list - len
numberv13.0.7get the length of a list - insert at index
numberv13.0.7Insert an element before or after another element in a list - pushx
conditionv13.0.7prepend an element to a list, only if the list exists - rpush
conditionv13.0.7append one or multiple elements to a list
redis sets
- members
arrayv13.0.7Get all the members in a set - add
numberv13.0.7add one member to a set - is member
conditionv13.0.1determine if a given value is a member of a set - rem
numberv13.0.7Remove one member from a set - push array
conditionv13.0.7prepend multiple elements to a sadd - card
numberv13.0.7get the number of members in a set - randmember
valuev13.0.7Get one random member from a set - pop
valuev13.0.7Remove and return one random member from a set
redis sorted sets
- zrange
arrayv13.0.5retrieve items from the sorted sets - zadd
numberv13.0.5add one member to a sorted set - zrem
conditionv13.0.5remove one member from a sorted set