You are here

protected function MemcacheBackend::timeIsGreaterThanBinDeletionTime in Memcache API and Integration 8.2

Determines if a (micro)time is greater than the last bin deletion time.

@internal

Parameters

float $item_microtime: A given (micro)time.

Return value

bool TRUE if the (micro)time is greater than the last bin deletion time, FALSE otherwise.

1 call to MemcacheBackend::timeIsGreaterThanBinDeletionTime()
MemcacheBackend::getMultiple in src/MemcacheBackend.php
Returns data from the persistent cache when given an array of cache IDs.

File

src/MemcacheBackend.php, line 441

Class

MemcacheBackend
Defines a Memcache cache backend.

Namespace

Drupal\memcache

Code

protected function timeIsGreaterThanBinDeletionTime($item_microtime) {
  $last_bin_deletion = $this
    ->getBinLastDeletionTime();

  // If there is time, assume FALSE as there is no previous deletion time
  // to compare with.
  if (!$last_bin_deletion) {
    return FALSE;
  }
  return $item_microtime > $last_bin_deletion;
}