Redis Debounce icon

Redis Debounce

Debounce and batch items using Redis with customizable keys

Process Ready

AI-generated

Summary

Retrieve and process up to a specified limit of keys whose debounce period has expired, returning each key's items and automatically clearing their stored data from Redis.

Inputs

  • Limit — Maximum number of ready keys to retrieve and process (default is 100).

Output shape

a list of processed keys each with its key identifier, accumulated items, and item count

Returns an object with success status, count of processed keys, and an array of items objects. Each items object includes the key, the items array decoded from stored JSON, and the number of items. Automatically removes processed keys and their data from Redis.

Examples

Example 1: Processing ready debounce keys

Set the Limit input to define how many ready keys to process at once (e.g., 50). The operation fetches those keys ready for processing (debounce time expired), retrieves and returns their accumulated items, and clears their data from Redis.

Discussion