wp_cache_add Wordpress function


Description:

Adds data to the cache, if the cache key doesn't already exist.


Syntax:


Arguments:

(int|string) $key The cache key to use for retrieval later
(mixed) $data The data to add to the cache store
(string) $group The group to add the cache to
(int) $expire When the cache data should be expired


Return Type:

(bool) False if cache key and group already exist, true on success


Define At:

wp-includes/cache.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_cache_add


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×