Wappler Redis Toolkit is a powerful extension allowing Wappler users to interact directly with Redis. This includes operations like inserting, updating, retrieving JSON, manipulating counters, managing keys, handling collections, and executing custom Redis commands.
- Functioning Redis connection, specified within the Wappler server config, Redis connection defined with ENV variables, or a user-defined db in the extension UI.
- The ioredis library needs to be installed in your project.
- Create the directory
/extensions/server_connect/modules
in your project folder if it doesn't exist already. - Unzip the source code into
/extensions/server_connect/modules
. - Refresh the Server Actions panel (Restarting Wappler is also an option).
- Install ioredis library will be automatically installed upon use and next deployment.
- You should now have a Redis Toolkit group in your available actions list for server workflows.
- REDIS_PORT: The Redis port.
- REDIS_HOST: The Redis host.
- REDIS_DB: The Redis database.
- REDIS_PASSWORD: The Redis password.
- REDIS_USER: The Redis user.
- REDIS_TLS: The TLS certificate. Define it is {} if you need a TLS connection without defining a cert.
Stores JSON data in the specified Redis key.
Retrieves JSON data from the specified Redis key.
Deletes the specified key-value pair from Redis.
Updates the JSON data in the specified Redis key.
Increments the counter at the specified Redis key.
Decrements the counter at the specified Redis key.
Fetches all keys currently stored in Redis.
Allows running of custom Redis commands.
Fetches all key-value pairs currently stored in Redis.
Sets an expiration time on a given key.
Renames the given key.
Checks if the specified key exists in Redis.
Gets the TTL (time to live) of a specified key.
Adds elements to a specified Redis set.
Adds elements to a specified Redis list.
Removes the specified item from a Redis set.
Removes the specified item from a Redis list.
Removes duplicate items from a specified Redis list.
Returns the length of a specified Redis list or set.