NiltonVolpato/zcache — reverse-engineered prompt

Reverse engineered prompt

Build me a small Zig command line cache tool called zcache. I want it to feel like a simple in memory key value store that just works. On first use it should automatically start a background server, so I do not need to manually launch anything. Keep the memory use very small, support multiple named tables with their own size limits, and remove the least recently used entries when a table gets full.

The CLI should support status, get, and set commands. Please also add a silent mode that only uses return codes for scripts, and a raw mode that prints just the stored value. I want an optional config file in the user config folder where I can set the server idle timeout and define the tables. If nothing is configured, use a sensible default and shut the server down after about 8 hours of inactivity.

Please make sure it builds, runs, and tests cleanly, and include a simple README with install and usage examples. Look up current Zig async IO docs online if you need to.

Want more depth? Deep Reverse