Looks up key; if it exists returns corresponding value else evaluates value, adds it to the associative array and returns it.
The cache.
The key.
The required value.
The value.
auto cache = CacheLRU!(int,string); cache.require(5, { return "5"; }());
See Implementation
Looks up key; if it exists returns corresponding value else evaluates value, adds it to the associative array and returns it.