You are here

function ad_memcache_set in Advertisement 5

Same name and namespace in other branches
  1. 5.2 cache/memcache/ad_cache_memcache.inc \ad_memcache_set()
  2. 6 cache/memcache/ad_cache_memcache.inc \ad_memcache_set()

Store a value in memcache.

3 calls to ad_memcache_set()
ad_cache_memcache_build in cache/memcache/ad_cache_memcache.module
Caches ad information into memory.
ad_cache_memcache_get_ids in cache/memcache/ad_cache_memcache.inc
ad_memcache_increment_map in cache/memcache/ad_cache_memcache.inc
Update mapping which allows us to quickly find stats in memcache when feeding them into the database.

File

cache/memcache/ad_cache_memcache.inc, line 220

Code

function ad_memcache_set($key, $value, $timeout = 86400) {
  $memcache = ad_memcache_init();
  return $memcache
    ->set($key, $value, MEMCACHE_COMPRESSED, $timeout);
}