protected property DatabaseStorageExpirable::$needsGarbageCollection in Service Container 7
Same name and namespace in other branches
- 7.2 lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php \Drupal\Core\KeyValueStore\DatabaseStorageExpirable::needsGarbageCollection
Flag indicating whether garbage collection should be performed.
When this flag is TRUE, garbage collection happens at the end of the request when the object is destructed. The flag is set during set and delete operations for expirable data, when a write to the table is already being performed. This eliminates the need for an external system to remove stale data.
Type: bool
File
- lib/
Drupal/ Core/ KeyValueStore/ DatabaseStorageExpirable.php, line 34 - Contains \Drupal\Core\KeyValueStore\DatabaseStorageExpirable.
Class
- DatabaseStorageExpirable
- Defines a default key/value store implementation for expiring items.
Namespace
Drupal\Core\KeyValueStoreCode
protected $needsGarbageCollection = FALSE;