You are here

function ad_memcache_add in Advertisement 5.2

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

Store a value in memcache.

1 call to ad_memcache_add()
ad_memcache_lock in cache/memcache/ad_cache_memcache.inc
Get a lock in memcache.

File

cache/memcache/ad_cache_memcache.inc, line 229

Code

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