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:
  • $wp_object_cache
See:
  • WP_Object_Cache::replace()
Returns:
  • (bool) False if not exists, 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