WeSearch

Redis Array Playground

Simon Willison· ·1 min read · 0 reactions · 0 comments · 6 views
#redis#databases#arrays#ai-assisted development#wasm#Salvatore Sanfilippo#Redis#TRE#Claude Code#WASM
Redis Array Playground
⚡ TL;DR · AI summary

Salvatore Sanfilippo has introduced a pull request to add arrays as a new data type in Redis, complete with a suite of array-specific commands. An interactive playground built with WASM allows developers to test the new functionality directly in the browser. The development process, which involved AI assistance, was detailed by Sanfilippo, highlighting the use of the TRE regex library for the ARGREP command.

Key facts
Original article
Simon Willison's Weblog · Simon Willison
Read full at Simon Willison's Weblog →
Opening excerpt (first ~120 words) tap to expand

Salvatore Sanfilippo submitted a PR 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 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. Salvatore wrote more about the AI-assisted development process for the array type in Redis array type: short story of a long development.

Excerpt limited to ~120 words for fair-use compliance. The full article is at Simon Willison's Weblog.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments