tuweni / org.apache.tuweni.concurrent / ExpiringMap / replace

replace

fun replace(key: K, value: V): V? (source)
fun replace(key: K, oldValue: V, newValue: V): Boolean (source)