public function set($cid,
$data,
$expire = Cache::PERMANENT, array
$tags =
[]) { assert(Inspector::
assertAllStrings($tags), 'Cache Tags must be strings.'
);
$item =
(object) [ 'cid' =>
$cid,
'data' =>
$data,
'created' =>
round(microtime(TRUE
), 3
),
'expire' =>
$expire,
'tags' =>
array_unique($tags),
'checksum' =>
$this->checksumProvider->
getCurrentChecksum($tags),
];
$this->
writeItem($this->
normalizeCid($cid),
$item);
} /**
* {@inheritdoc}
*/
public function delete($cid) { $this->
storage()->
delete($this->
normalizeCid($cid));
} /**
* {@inheritdoc}
*/