public function get(CacheableInterface $item)
    {
        $targetFile = $this->getTargetFile($item->getHashKey());

        $return = false;
        if (file_exists($targetFile)) {
            if ($item->getTtl() > 0 && ((filemtime($targetFile) + $item->getTtl()) < time())) {
                $this->remove($item);
            } else {
                $return = unserialize(file_get_contents($targetFile, false, null, strlen(self::STR_PREFIX)));
            }
        }

        return $return;
    }
public function get(CacheableInterface $item)
    {
        $targetFile = $this->getTargetFile($item->getHashKey());

        $return = false;
        if (file_exists($targetFile)) {
            if ($item->getTtl() > 0 && ((filemtime($targetFile) + $item->getTtl()) < time())) {
                $this->remove($item);
            } else {
                $return = unserialize(file_get_contents($targetFile, false, null, strlen(self::STR_PREFIX)));
            }
        }

        return $return;
    }
public function get ( CacheableInterface $ item ) { $ targetFile = $ this -> getTargetFile ( $ item -> getHashKey ( ) ) ; $ return = false ; if ( file_exists ( $ targetFile ) ) { if ( $ item -> getTtl ( ) > 0 && ( ( filemtime ( $ targetFile ) + $ item -> getTtl ( ) ) < time ( ) ) ) { $ this -> remove ( $ item ) ; } else { $ return = unserialize ( file_get_contents ( $ targetFile , false , null , strlen ( self :: STR_PREFIX ) ) ) ; } } return $ return ; }
Get value from cache
Must return false when cache is expired or invalid

@param \Itkg\Core\CacheableInterface $item

@return mixed
Get value from cache Must return false when cache is expired or invalid