Std.LruCache.get
1 declaration
fn
get: &Std.LruCache.LruCache[K, V] -> K -> (Option[V], Std.LruCache.LruCache[K, V])This is a callable function.
What it does
The value stored under a key, and the cache with that key marked as used.
Both, because a read is what a recency order is about: taking the value
without recording that it was taken would let an entry the program relies on
be discarded as unused. A caller that genuinely only wants to look — a
diagnostic, a report — should use peek.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
- & borrows a value for this call instead of moving or copying it.
- Names inside [ ] are type arguments, such as the item type held by a collection.
- Option holds Some(value) or None when no value is available.
