function MemoryBackend::getRequestTime

Wrapper method for REQUEST_TIME constant.

Return value

int

2 calls to MemoryBackend::getRequestTime()
MemoryCache::prepareItem in core/lib/Drupal/Core/Cache/MemoryCache/MemoryCache.php
Prepares a cached item.
MemoryCache::set in core/lib/Drupal/Core/Cache/MemoryCache/MemoryCache.php
Stores data in the persistent cache.

File

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

Class

MemoryBackend
Defines a memory cache implementation.

Namespace

Drupal\Core\Cache

Code

protected function getRequestTime() {
  return defined('REQUEST_TIME') ? REQUEST_TIME : (int) $_SERVER['REQUEST_TIME'];
}

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