wp cache replace <key> <value> <group> <expiration>

Replaces a value in the object cache, if the value already exists

Arguments

NameDescription
keyCache key
valueValue to replace
groupMethod for grouping data within the cache which allows the same key to be used across groups
expirationDefine how long to keep the value, in seconds. 0 means as long as possible