Corex24/cachkit — reverse-engineered prompt
Reverse engineered prompt
Build me a TypeScript npm library for Node.js called Cachkit that makes caching really easy for API projects. I want developers to be able to create a cache with no setup, save and read values, delete keys, clear everything, check if a key exists, list keys, and wrap slow functions so the result is remembered automatically.
It should work in memory by default, but also support Redis and Memcached for production. Include time to live expiration, namespaces so keys don’t collide, safe error handling, JSON serialization, optional encryption using AES 256 GCM, basic rate limiting, health checks, and simple performance stats.
Please also add a small command line tool so someone can check status, list keys, get and set values, delete keys, clear the cache, and view stats. Make it feel polished and ready to publish, with TypeScript types, tests, linting, build scripts, and clear README examples for database query caching, API response caching, and sessions.
Want more depth? Deep Reverse