. */ namespace Doctrine\ORM\Cache; /** * A key that identifies a particular query. * * @since 2.5 * @author Fabio B. Silva */ class QueryCacheKey extends CacheKey { /** * @var integer */ public $lifetime; /** * @var integer */ public $cacheMode; /** * @param string $hash Result cache id * @param integer $lifetime Query lifetime * @param integer $cacheMode Query cache mode */ public function __construct($hash, $lifetime, $cacheMode = 3) { $this->hash = $hash; $this->lifetime = $lifetime; $this->cacheMode = $cacheMode; } }