StaticLRUCache.opIndexAssign

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

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

Meta