Redis Array Playground
Tool: Redis Array Playground (https://tools.simonwillison.net/redis-array)
Salvatore Sanfilippo submitted a PR (https://github.com/redis/redis/pull/15162) adding a new data type - arrays - to Redis.
The new commands are ARCOUNT, ARDEL, ARDELRANGE, ARGET, ARGETRANGE, ARGREP, ARINFO, ARINSERT, ARLASTITEMS, ARLEN, ARMGET, ARMSET, ARNEXT, AROP, ARRING, ARSCAN, ARSEEK, ARSET.
The implementation is currently available in a branch, so I had Claude Code for web (https://github.com/simonw/tools/pull/277) build this interactive playground for trying out the new commands in a WASM-compiled build of a subset of Redis running in the browser.
The most interesting new command is ARGREP which can run a server-side grep against a range of values in the array using the newly vendored TRE regex library (https://github.com/laurikari/tre/).
Salvatore wrote more about the AI-assisted development process for the array type in Redis array type: short story of a long development (https://antirez.com/news/164).
Tags: salvatore-sanfilippo (https://simonwillison.net/tags/salvatore-sanfilippo), webassembly (https://simonwillison.net/tags/webassembly), generative-ai (https://simonwillison.net/tags/generative-ai), agentic-engineering (https://simonwillison.net/tags/agentic-engineering), ai (https://simonwillison.net/tags/ai), redis (https://simonwillison.net/tags/redis), llms (https://simonwillison.net/tags/llms), regular-expressions (https://simonwillison.net/tags/regular-expressions), c (https://simonwillison.net/tags/c)
Write a comment