wp_cache_replace


wp_cache_replace ( $key, $data, $group = '', $expire = 0 )

Parameters:
  • (int|string) $key The key for the cache data that should be replaced.
  • (mixed) $data The new data to store in the cache.
  • (string) $group Optional. The group for the cache data that should be replaced. Default empty.
  • (int) $expire Optional. When to expire the cache contents, in seconds. Default 0 (no expiration).
See:
  • WP_Object_Cache::replace()
Returns:
  • (bool) False if original value does not exist, true if contents were replaced
Defined at:

Description

Replaces the contents of the cache with new data.

Related Functions

wp_cache_reset, wp_cache_delete, wp_cache_decr, wp_cache_close, wp_cache_set

Top Google Results

User discussions

wpseek mobile