Redis
Cache keys, lists, sets, sorted sets and Bloom filters, and rate limit calls.
Credentials Create a service provider for this service and point the blocks at it. The cluster holds the key, so it never sits on a pin or in a blueprint export.
Guides
StoragesBlocks
Add these blocks on the canvas by searching for their name. Each block page lists its pins and how it behaves.
- rate limit
function_rate_limitCounts 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. - decrement
function_redis_cache_decr_keyDecrements the number stored at key by one. If the key does not exist, it is set to 0 before performing the operation. - delete
function_redis_cache_delete_keyRemoves the specified key and their values. - get cache key
function_redis_cache_get_existsgets the key and returns true or false based of its existence, makes it easier for cache-management in flows - get cache json key
function_redis_cache_get_exists_jsongets the key and returns true or false based of its existence, makes it easier for cache-management in flows - get cache ttl
function_redis_cache_get_ttlget the time to live in seconds - increment
function_redis_cache_incr_keyIncrements the number stored at key by one. If the key does not exist, it is set to 0 before performing the operation. - exists
function_redis_cache_key_existsChecks if the key already exists - set
function_redis_cache_set_keySet key to hold the string value. If key already holds a value, it is overwritten, regardless of its type. - set json
function_redis_cache_set_key_jsonSet key to hold the string value. If key already holds a value, it is overwritten, regardless of its type. - set cache ttl
function_redis_cache_ttlset the time to live in seconds - bf add
redis_bloom_addAdd an item to a Bloom filter. Creates the filter if it does not exist. - bf exists
redis_bloom_existsCheck if an item may exist in a Bloom filter. Returns true if the item may exist (with the configured false-positive rate), false if it definitely does not exist. - bf madd
redis_bloom_maddAdd multiple items to a Bloom filter at once. Creates the filter if it does not exist. - bf mexists
redis_bloom_mexistsCheck if multiple items may exist in a Bloom filter. Returns an array of booleans. - bf reserve
redis_bloom_reserveCreate a new Bloom filter with a given error rate and initial capacity. The filter will auto-scale if capacity is exceeded. - get by index
redis_list_indexGet an element from a list by its index - insert at index
redis_list_insertInsert an element before or after another element in a list - len
redis_list_lenget the length of a list - pop
redis_list_popRemove and get the first element in a list - push
redis_list_pushprepend one element to a list - push array
redis_list_push_arrayprepend multiple elements to a list - pushx
redis_list_pushxprepend an element to a list, only if the list exists - range
redis_list_rangeget a range of elements from a list. Use start 0 and stop -1 to retrieve all items. - remove
redis_list_removeremoves the first count occurrences of elements equal to element - rpop
redis_list_rpopremove and get the last element in a list - rpush
redis_list_rpushappend one or multiple elements to a list - rpushx
redis_list_rpushxappend an element to a list, only if the list exists - set
redis_list_setset the value of an element in a list by its index - trim
redis_list_trimtrim a list to the specified range - add
redis_set_addadd one member to a set - card
redis_set_cardget the number of members in a set - is member
redis_set_ismemberdetermine if a given value is a member of a set - members
redis_set_membersGet all the members in a set - pop
redis_set_popRemove and return one random member from a set - push array
redis_set_push_arrayprepend multiple elements to a sadd - randmember
redis_set_randmemberGet one random member from a set - rem
redis_set_remRemove one member from a set - zadd
redis_set_zaddadd one member to a sorted set - zrange
redis_set_zrangeretrieve items from the sorted sets - zrem
redis_zremremove one member from a sorted set - get cache
value_redis_cache_get_keyget redis cache