setExpirationCallback
Sets the element's expiration callback, overriding any existing callback.
Return
If this key was present and had its callback changed.
Parameters
key
The key to set.
onExpire
New Duration until expiration occurs.