Halopen output
“"Add a new struct called CacheLayer in cache-mod-dot-rs that wraps a moka LRU cache. The public API should expose get-or-insert-with — async, takes a key and an async closure that produces the value. Use a TTL of five minutes by default. Wire it into the existing api-handler-orders module. Don't change the database query path; we just want a read-through cache in front of it."”
- · Rust crate name (moka) preserved exactly
- · Method name with hyphenation captured naturally
- · Specific TTL ("five minutes") landed verbatim
- · Negative constraint ("don't change the database query path") preserved