set Method

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

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

Parameter Type Description
key K  
value V  

Returns - LRUCache<K, V>

this.

Defined in

Last Updated: 30 November, 2023