wp_cache_replace
wp_cache_replace ( $key, $data, $group = '', $expire = 0 )
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
Uses:See:- WP_Object_Cache::replace()
Returns:- (bool) False if not exists, true if contents were replaced
Defined at: - Introduced in WordPress: 2.0.0
- Deprecated in WordPress: -
Description
Replaces the contents of the cache with new data.