Definition:
function wp_cache_replace($key, $data, $group = '', $expire = 0) {}
Replaces the contents of the cache with new data.
Parameters
- int|string $key: What to call the contents in the cache
- mixed $data: The contents to store in the cache
- string $group: Where to group the cache contents
- int $expire: When to expire the cache contents
Return values
returns:False if cache key and group already exist, true on success
Source code
function wp_cache_replace($key, $data, $group = '', $expire = 0) { global $wp_object_cache; return $wp_object_cache->replace($key, $data, $group, $expire); }
3451
No comments yet... Be the first to leave a reply!