KeyValueDatabaseExpirableFactory::garbageCollection

public KeyValueDatabaseExpirableFactory::garbageCollection()

Deletes expired items.

File

core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php, line 60

Class

KeyValueDatabaseExpirableFactory
Defines the key/value store factory for the database backend.

Namespace

Drupal\Core\KeyValueStore

Code

public function garbageCollection() {
  $this->connection->delete('key_value_expire')
    ->condition('expire', REQUEST_TIME, '<')
    ->execute();
}
doc_Drupal
2016-10-29 09:21:40
Comments
Leave a Comment

Please login to continue.