Summary
The function wp_cache_set saves data to the cache.
1
2
It differs from wp_cache_add and wp_cache_replace in that it will always write data.
1
It takes four parameters: a key, data, group and expire.
1
2
According to
Summary
wp_cache_set
Saves the data to the cache.
wp_cache_set( (int|string) $key , (mixed) $data , (string) $group = '' , (int) $expire = 0 );
Differs from wp_cache_add( … ) and wp_cache_replace( … ) in that it will always write data.
wp_cache_set | function | WordPress | hookr.io
hookr.io
function wp_cache_set( $key, $data, $group = '', $expire = 0 ) { global $wp_object_cache; return $wp_object_cache->set( $key, $data, $group, (int) $expire ); }
wp_cache_set()
hubwiz.com
Saves the data to the cache. WordPress lookup for wp_cache_set, a WordPress Function. (int|string) $key The cache key to use for retrieval later. Required: Yes ...
wp_cache_set (WordPress Function)
wpseek.com
wp_cache_set( int|string $key, mixed $data, string $group = '', int $expire ) Differs from wp_cache_add() and wp_cache_replace() in that it will always write ...
Wp_cache_set() - WordPress - W3cubDocs
w3cub.com