public function CacheCollectorInterface::set in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Cache/CacheCollectorInterface.php \Drupal\Core\Cache\CacheCollectorInterface::set()
Sets cache data.
It depends on the specific case and implementation whether this has a permanent effect or if it just affects the current request.
Parameters
string $key: Key that identifies the data.
mixed $value: The data to be set.
1 method overrides CacheCollectorInterface::set()
- CacheCollector::set in core/
lib/ Drupal/ Core/ Cache/ CacheCollector.php - Implements \Drupal\Core\Cache\CacheCollectorInterface::set().
File
- core/
lib/ Drupal/ Core/ Cache/ CacheCollectorInterface.php, line 48 - Contains \Drupal\Core\Cache\CacheCollectorInterface.
Class
- CacheCollectorInterface
- Provides a caching wrapper to be used in place of large structures.
Namespace
Drupal\Core\CacheCode
public function set($key, $value);