MemoryStorage::delete

public MemoryStorage::delete($key) Deletes an item from the key/value store. Parameters string $key: The item name to delete. Overrides StorageBase::delete File core/lib/Drupal/Core/KeyValueStore/MemoryStorage.php, line 81 Class MemoryStorage Defines a default key/value store implementation. Namespace Drupal\Core\KeyValueStore Code public function delete($key) { unset($this->data[$key]); }

MemoryStorage::$data

The actual storage of key-value pairs. Type: array File core/lib/Drupal/Core/KeyValueStore/MemoryStorage.php, line 15 Class MemoryStorage Defines a default key/value store implementation. Namespace Drupal\Core\KeyValueStore Code protected $data = array();

MemoryStorage

Defines a default key/value store implementation. Hierarchy class \Drupal\Core\KeyValueStore\StorageBase implements KeyValueStoreInterfaceclass \Drupal\Core\KeyValueStore\MemoryStorage File core/lib/Drupal/Core/KeyValueStore/MemoryStorage.php, line 8 Namespace Drupal\Core\KeyValueStore Members Name Modifiers Type Description MemoryStorage::$data protected property The actual storage of key-value pairs. MemoryStorage::delete public function Deletes an item from t

MemoryCounterBackend::set

public MemoryCounterBackend::set($cid, $data, $expire = Cache::PERMANENT, array $tags = array()) Stores data in the persistent cache. Core cache implementations set the created time on cache item with microtime(TRUE) rather than REQUEST_TIME_FLOAT, because the created time of cache items should match when they are created, not when the request started. Apart from being more accurate, this increases the chance an item will legitimately be considered valid. Parameters string $cid: The cache ID o

MemoryCounterBackend::resetCounter

public MemoryCounterBackend::resetCounter() Resets the call counter. File core/lib/Drupal/Core/Cache/MemoryCounterBackend.php, line 89 Class MemoryCounterBackend Defines a memory cache implementation that counts set and get calls. Namespace Drupal\Core\Cache Code public function resetCounter() { $this->counter = array(); }

MemoryCounterBackend::increaseCounter

protected MemoryCounterBackend::increaseCounter($function, $cid) Increase the counter for a function with a certain cid. Parameters string $function: The called function. string $cid: The cache ID of the cache entry to increase the counter. File core/lib/Drupal/Core/Cache/MemoryCounterBackend.php, line 54 Class MemoryCounterBackend Defines a memory cache implementation that counts set and get calls. Namespace Drupal\Core\Cache Code protected function increaseCounter($function, $cid) {

MemoryCounterBackend::getCounter

public MemoryCounterBackend::getCounter($method = NULL, $cid = NULL) Returns the call counter for the get, set and delete methods. Parameters string $method: (optional) The name of the method to return the call counter for. string $cid: (optional) The name of the cache id to return the call counter for. Return value int|array An integer if both method and cid is given, an array otherwise. File core/lib/Drupal/Core/Cache/MemoryCounterBackend.php, line 74 Class MemoryCounterBackend Defines

MemoryCounterBackend::get

public MemoryCounterBackend::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

MemoryCounterBackend::delete

public MemoryCounterBackend::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 MemoryBackend::delete See also \Drupal\Core\Cache\CacheBackendIn

MemoryCounterBackend::$counter

Stores a list of cache cid calls keyed by function name. Type: array File core/lib/Drupal/Core/Cache/MemoryCounterBackend.php, line 20 Class MemoryCounterBackend Defines a memory cache implementation that counts set and get calls. Namespace Drupal\Core\Cache Code protected $counter = array();