protected property 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

drupal/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php, line 39
Contains Drupal\Core\KeyValueStore\DatabaseStorageExpirable.

Class

DatabaseStorageExpirable
Defines a default key/value store implementation for expiring items.

Namespace

Drupal\Core\KeyValueStore

Code

protected $needsGarbageCollection = FALSE;