function MemoryBackend::__sleep

Prevents data stored in memory backends from being serialized.

File

core/lib/Drupal/Core/Cache/MemoryBackend.php, line 225

Class

MemoryBackend
Defines a memory cache implementation.

Namespace

Drupal\Core\Cache

Code

public function __sleep() {
  return [
    'time',
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.