antirez/redis — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a fast in memory data store similar to Redis. I want to run a local server, connect with a simple command line tool, and store data by key using common types like strings, lists, sets, sorted sets, hashes, streams, bitmaps, and approximate counters.

It should be useful as a cache, session store, queue, pub sub message bus, and simple NoSQL database. Please include basic commands for reading, writing, deleting, expiring keys, publishing messages, and saving data to disk so it can restart without losing everything.

Make it easy to build from source on macOS and Linux, with clear config files, examples, and a test script. Keep the first version practical and well documented rather than enterprise fancy. If you need details on Redis behavior or command names, look up the current docs online and follow the simple compatible approach where reasonable.

Want more depth? Deep Reverse