← 返回列表

Redis Array Playground

Simon Willison 3 信息等级 3 1 噪音/剔除;2 较弱;3 普通事实;4 重要行业动态;5 极重大事件。该分数是信息显著性,不是投资建议。 发布:2026-05-04T15:53 抓取:2026-05-04 22:14
🔗 原文链接
摘要

Redis 作者 Salvatore Sanfilippo 提交了新增 array 数据类型的 PR,包含 ARCOUNT、ARDEL 等十余个新命令,其中 ARGREP 支持服务端 grep 并使用 TRE 正则库。目前该实现位于分支中,已有交互式 playground 供测试。

客观事实
  • Redis 新增 array 数据类型,已提交 PR
  • 新增 ARCOUNT、ARDEL 等十余个命令
  • ARGREP 命令使用 TRE 库实现服务端 grep
Redis Salvatore Sanfilippo TRE 正则库

原文

Tool: Redis Array Playground

    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.

    Tags: salvatore-sanfilippo, webassembly, generative-ai, agentic-engineering, ai, redis, llms, regular-expressions, c