MCPcopy Create free account
hub / github.com/cosdata/cosdata / CachedValue

Enum CachedValue

src/models/lru_cache.rs:164–167  ·  view source on GitHub ↗

Wrapper for the value that's returned from the LRUCache when trying to get_or_insert in a single operation. Useful for indicating whether there was a cache hit or a miss.

Source from the content-addressed store, hash-verified

162/// trying to get_or_insert in a single operation. Useful for
163/// indicating whether there was a cache hit or a miss.
164pub enum CachedValue<V> {
165 Hit(V),
166 Miss(V),
167}
168
169impl<V> CachedValue<V> {
170 pub fn inner(self) -> V {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected