setExpiration

open override fun setExpiration(key: K, expireIn: Duration, onExpiration: ExpirationMapCallback<K, V>?): Boolean

Sets the element's expiration

Return

If this key was present and had its expiration changed.

Parameters

key

The key to set.

expireIn

New duration until expiration occurs.