private function RiakCache::isExpired in Plug 7
Check if a given Riak Object have expired.
Parameters
\Riak\Object $object:
Return value
boolean
2 calls to RiakCache::isExpired()
- RiakCache::doContains in lib/doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ RiakCache.php 
- Tests if an entry exists in the cache.
- RiakCache::doFetch in lib/doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ RiakCache.php 
- Fetches an entry from the cache.
File
- lib/doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ RiakCache.php, line 207 
Class
- RiakCache
- Riak cache provider.
Namespace
Doctrine\Common\CacheCode
private function isExpired(object $object) {
  $metadataMap = $object
    ->getMetadataMap();
  return isset($metadataMap[self::EXPIRES_HEADER]) && $metadataMap[self::EXPIRES_HEADER] < time();
}