import { RR } from "https://deno.land/x/velo@0.1.5/mod.ts";
Random Replacement Cache
Properties
private
storage: [key in Key]: V | undefinedMethods
private
randomProperty()clear()
Reset the cache
Array like forEach, iterating over all entries in the cache
get(key: Key)
Gets the value for a given key
has(key: Key)
Checks if a given key is in the cache
peek(key: Key)
Get the value to a key without manipulating the cache
remove(key: Key)
Removes the cache entry with given key