set Method

Put into the cache associated with . Replaces any existing entry with the same key.

set(key: K, value: V): LRUCache<K, V>

@returns this.

Parameter Type Description
key K  
value V  

Returns - LRUCache<K, V>

this.

Defined in

Last Updated: 16 April, 2024