Provides methods to use a cache backend while respecting a 'use caches' flag.
Hierarchy
- trait \Drupal\Core\Cache\UseCacheBackendTrait
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. |
Please login to continue.