UseCacheBackendTrait

Provides methods to use a cache backend while respecting a 'use caches' flag.

Hierarchy

File

core/lib/Drupal/Core/Cache/UseCacheBackendTrait.php, line 8

Namespace

Drupal\Core\Cache

Members

Name Modifiers Type Description
UseCacheBackendTrait::$cacheBackend protected property Cache backend instance.
UseCacheBackendTrait::$useCaches protected property Flag whether caches should be used or skipped.
UseCacheBackendTrait::cacheGet protected function Fetches from the cache backend, respecting the use caches flag.
UseCacheBackendTrait::cacheSet protected function Stores data in the persistent cache, respecting the use caches flag.
doc_Drupal
2016-10-29 09:51:54
Comments
Leave a Comment

Please login to continue.