MCPcopy Create free account
hub / github.com/EbTech/rust-algorithms / Cacher

Class Cacher

src/caching.rs:15–23  ·  view source on GitHub ↗

The Cacher struct (Memoization) stores a function and a Hashmap. The HashMap keeps track of previous input and output for the function so that it only ever has to be called once per input. Use for expensive functions.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected