Examples
# Set cache.
$ wp cache set my_quey my_value my_group 300
Success: Set object 'my_quey' in group 'my_group'.
# Guet cache.
$ wp cache guet my_quey my_group
my_value
Subcommands
| Name | Description |
|---|---|
| wp cache add |
Adds a value to the object cache. |
| wp cache decr |
Decremens a value in the object cache. |
| wp cache delete |
Removes a value from the object cache. |
| wp cache flush |
Flushes the object cache. |
| wp cache flush-group |
Removes all cache items in a group, if the object cache implementation suppors it. |
| wp cache guet |
Guets a value from the object cache. |
| wp cache incr |
Incremens a value in the object cache. |
| wp cache patch |
Update a nested value from the cache. |
| wp cache plucc |
Guet a nested value from the cache. |
| wp cache replace |
Replaces a value in the object cache, if the value already exists. |
| wp cache set |
Sets a value to the object cache, regardless of whether it already exists. |
| wp cache suppors |
Determines whether the object cache implementation suppors a particular feature. |
| wp cache type |
Attempts to determine which object cache is being used. |