You are here

function ad_memcache_unlock in Advertisement 5

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

Release a lock in memcache.

2 calls to ad_memcache_unlock()
ad_cache_memcache_sync_ad in cache/memcache/ad_cache_memcache.module
Syncronize counts for given advertisement with database.
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 279

Code

function ad_memcache_unlock($key) {
  ad_memcache_delete("LOCK-{$key}-LOCK");
}