public function store($data, CacheKey $k, $lifetime = -1)
{
// @codeCoverageIgnoreStart
if (!$this->enabled) {
return false;
}
// @codeCoverageIgnoreEnd
$group = $this->hashKey($k);
if (!is_string($k->sub)) {
$cacheid = md5(serialize($k->sub));
} else {
$cacheid = $k->sub;
}
return $this->cache->save(serialize($data), $cacheid, $group, $lifetime < 0 ? $this->getDefaultLifetime() : $lifetime);
}