StaticLRUCache.set

Cache value at key. Updates the value if key is already in the cache. This marks the item as recently used.

  1. Value set(Key key, Value value)
  2. Value set(Key key, Func update)
    struct StaticLRUCache(Key, Value, size_t cacheSize)
    ref return
    Value
    set
    (
    Func
    )
    (
    Key key
    ,
    scope Func update
    )
    if (
    is(typeof(update(lvalueOf!Value)) == void)
    )

Meta