MemoryBackend::get

public MemoryBackend::get($cid, $allow_invalid = FALSE) Returns data from the persistent cache. Parameters string $cid: The cache ID of the data to retrieve. bool $allow_invalid: (optional) If TRUE, a cache item may be returned even if it is expired or has been invalidated. Such items may sometimes be preferred, if the alternative is recalculating the value stored in the cache, especially if another concurrent request is already recalculating the same value. The "valid" property of the returne

MemoryBackend::garbageCollection

public MemoryBackend::garbageCollection() Cleans up expired flood events. This method is called automatically on cron run. Overrides FloodInterface::garbageCollection See also system_cron() File core/lib/Drupal/Core/Flood/MemoryBackend.php, line 74 Class MemoryBackend Defines the memory flood backend. This is used for testing. Namespace Drupal\Core\Flood Code public function garbageCollection() { foreach ($this->events as $name => $identifiers) { foreach ($this->events[

MemoryBackend::garbageCollection

public MemoryBackend::garbageCollection() Performs garbage collection on a cache bin. The backend may choose to delete expired or invalidated items. Overrides CacheBackendInterface::garbageCollection File core/lib/Drupal/Core/Cache/MemoryBackend.php, line 189 Class MemoryBackend Defines a memory cache implementation. Namespace Drupal\Core\Cache Code public function garbageCollection() { }

MemoryBackend::deleteMultiple

public MemoryBackend::deleteMultiple(array $cids) Deletes multiple items from the cache. If the cache items are being deleted because they are no longer "fresh", you may consider using invalidateMultiple() instead. This allows callers to retrieve the invalid items by calling get() with $allow_invalid set to TRUE. In some cases an invalid item may be acceptable rather than having to rebuild the cache. Parameters array $cids: An array of cache IDs to delete. Overrides CacheBackendInterface::dele

MemoryBackend::deleteAll

public MemoryBackend::deleteAll() Deletes all cache items in a bin. Overrides CacheBackendInterface::deleteAll See also \Drupal\Core\Cache\CacheBackendInterface::invalidateAll() \Drupal\Core\Cache\CacheBackendInterface::delete() \Drupal\Core\Cache\CacheBackendInterface::deleteMultiple() File core/lib/Drupal/Core/Cache/MemoryBackend.php, line 144 Class MemoryBackend Defines a memory cache implementation. Namespace Drupal\Core\Cache Code public function deleteAll() { $this->cache =

MemoryBackend::delete

public MemoryBackend::delete($cid) Deletes an item from the cache. If the cache item is being deleted because it is no longer "fresh", you may consider using invalidate() instead. This allows callers to retrieve the invalid item by calling get() with $allow_invalid set to TRUE. In some cases an invalid item may be acceptable rather than having to rebuild the cache. Parameters string $cid: The cache ID to delete. Overrides CacheBackendInterface::delete See also \Drupal\Core\Cache\CacheBackendI

MemoryBackend::clear

public MemoryBackend::clear($name, $identifier = NULL) Makes the flood control mechanism forget an event for the current visitor. Parameters string $name: The name of an event. string $identifier: (optional) Unique identifier of the current user. Defaults to the current user's IP address). Overrides FloodInterface::clear File core/lib/Drupal/Core/Flood/MemoryBackend.php, line 50 Class MemoryBackend Defines the memory flood backend. This is used for testing. Namespace Drupal\Core\Flood

MemoryBackend::$requestStack

The request stack. Type: \Symfony\Component\HttpFoundation\RequestStack File core/lib/Drupal/Core/Flood/MemoryBackend.php, line 17 Class MemoryBackend Defines the memory flood backend. This is used for testing. Namespace Drupal\Core\Flood Code protected $requestStack;

MemoryBackend::$events

An array holding flood events, keyed by event name and identifier. File core/lib/Drupal/Core/Flood/MemoryBackend.php, line 22 Class MemoryBackend Defines the memory flood backend. This is used for testing. Namespace Drupal\Core\Flood Code protected $events = array();

MemoryBackend::$cache

Array to store cache objects. File core/lib/Drupal/Core/Cache/MemoryBackend.php, line 20 Class MemoryBackend Defines a memory cache implementation. Namespace Drupal\Core\Cache Code protected $cache = array();