You are here

protected function MemCacheDrupal::wildcardFlushes in Memcache API and Integration 7

Sum of all matching wildcards.

Checking any single cache item's flush value against this single-value sum tells us whether or not a new wildcard flush has affected the cached item.

Parameters

string $cid: The cache id to check.

Return value

int Sum of all matching wildcards for the given cache id.

2 calls to MemCacheDrupal::wildcardFlushes()
MemCacheDrupal::set in ./memcache.inc
Implements DrupalCacheInterface::set().
MemCacheDrupal::wildcardValid in ./memcache.inc
Check if a wildcard flush has invalidated the current cached copy.

File

./memcache.inc, line 392

Class

MemCacheDrupal
Implementation of cache.inc with memcache logic included

Code

protected function wildcardFlushes($cid) {
  return array_sum($this
    ->wildcards($cid));
}