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

Sets a value to the object cache, regardless of whether it already exists

Arguments

NameDescription
keyCache key
valueValue to set on the key
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