You are here

private function RiakCache::isExpired in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/cache/lib/Doctrine/Common/Cache/RiakCache.php \Doctrine\Common\Cache\RiakCache::isExpired()

Check if a given Riak Object have expired.

Parameters

\Riak\Object $object:

Return value

boolean

2 calls to RiakCache::isExpired()
RiakCache::doContains in vendor/doctrine/cache/lib/Doctrine/Common/Cache/RiakCache.php
Tests if an entry exists in the cache.
RiakCache::doFetch in vendor/doctrine/cache/lib/Doctrine/Common/Cache/RiakCache.php
Fetches an entry from the cache.

File

vendor/doctrine/cache/lib/Doctrine/Common/Cache/RiakCache.php, line 207

Class

RiakCache
Riak cache provider.

Namespace

Doctrine\Common\Cache

Code

private function isExpired(object $object) {
  $metadataMap = $object
    ->getMetadataMap();
  return isset($metadataMap[self::EXPIRES_HEADER]) && $metadataMap[self::EXPIRES_HEADER] < time();
}