You are here

class MockMemCacheDrupal in Memcache API and Integration 7

Wraps the MemCacheDrupal class in order to be able to call a protected method.

Hierarchy

Expanded class hierarchy of MockMemCacheDrupal

1 string reference to 'MockMemCacheDrupal'
MemCacheStampedeProtection::testStampedeProtectionIgnoringUnit in tests/memcache.test
Tests the opt out functionality of stampede protection using a unit test.

File

tests/memcache.test, line 765
Test cases for the memcache cache backend.

View source
class MockMemCacheDrupal extends MemCacheDrupal {
  public function stampedeProtected($cid) {
    return parent::stampedeProtected($cid);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MemCacheDrupal::$memcache protected property
MemCacheDrupal::clear public function Implements DrupalCacheInterface::clear(). Overrides DrupalCacheInterface::clear
MemCacheDrupal::garbageCollection protected function Garbage collection for get() and getMultiple().
MemCacheDrupal::get public function Implements DrupalCacheInterface::get(). Overrides DrupalCacheInterface::get
MemCacheDrupal::getMultiple public function Implements DrupalCacheInterface::getMultiple(). Overrides DrupalCacheInterface::getMultiple
MemCacheDrupal::isEmpty public function Implements DrupalCacheInterface::isEmpty(). Overrides DrupalCacheInterface::isEmpty
MemCacheDrupal::lockInit public function Helper function to load locking framework if not already loaded.
MemCacheDrupal::reloadVariables public function Helper function to reload variables.
MemCacheDrupal::set public function Implements DrupalCacheInterface::set(). Overrides DrupalCacheInterface::set
MemCacheDrupal::valid protected function Checks if a retrieved cache item is valid.
MemCacheDrupal::variable_set public function Re-implementation of variable_set() that writes through instead of clearing.
MemCacheDrupal::wildcardFlushes protected function Sum of all matching wildcards.
MemCacheDrupal::wildcards protected function Retrieves all matching wildcards for the given cache id.
MemCacheDrupal::wildcardValid protected function Check if a wildcard flush has invalidated the current cached copy.
MemCacheDrupal::__construct public function Constructs a MemCacheDrupal object.
MockMemCacheDrupal::stampedeProtected public function Determines whether stampede protection is enabled for a given bin/cid. Overrides MemCacheDrupal::stampedeProtected