class MockMemCacheDrupal in Memcache API and Integration 7
Wraps the MemCacheDrupal class in order to be able to call a protected method.
Hierarchy
- class \MemCacheDrupal implements DrupalCacheInterface
- class \MockMemCacheDrupal
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MemCacheDrupal:: |
protected | property | ||
MemCacheDrupal:: |
public | function |
Implements DrupalCacheInterface::clear(). Overrides DrupalCacheInterface:: |
|
MemCacheDrupal:: |
protected | function | Garbage collection for get() and getMultiple(). | |
MemCacheDrupal:: |
public | function |
Implements DrupalCacheInterface::get(). Overrides DrupalCacheInterface:: |
|
MemCacheDrupal:: |
public | function |
Implements DrupalCacheInterface::getMultiple(). Overrides DrupalCacheInterface:: |
|
MemCacheDrupal:: |
public | function |
Implements DrupalCacheInterface::isEmpty(). Overrides DrupalCacheInterface:: |
|
MemCacheDrupal:: |
public | function | Helper function to load locking framework if not already loaded. | |
MemCacheDrupal:: |
public | function | Helper function to reload variables. | |
MemCacheDrupal:: |
public | function |
Implements DrupalCacheInterface::set(). Overrides DrupalCacheInterface:: |
|
MemCacheDrupal:: |
protected | function | Checks if a retrieved cache item is valid. | |
MemCacheDrupal:: |
public | function | Re-implementation of variable_set() that writes through instead of clearing. | |
MemCacheDrupal:: |
protected | function | Sum of all matching wildcards. | |
MemCacheDrupal:: |
protected | function | Retrieves all matching wildcards for the given cache id. | |
MemCacheDrupal:: |
protected | function | Check if a wildcard flush has invalidated the current cached copy. | |
MemCacheDrupal:: |
public | function | Constructs a MemCacheDrupal object. | |
MockMemCacheDrupal:: |
public | function |
Determines whether stampede protection is enabled for a given bin/cid. Overrides MemCacheDrupal:: |