Implements Drupal\Core\Cache\CacheBackendInterface::set().
Overrides CacheBackendInterface::set
public function set($cid, $data, $expire = CacheBackendInterface::CACHE_PERMANENT, array $tags = array()) {
$this->cache[$cid] = (object) array(
'cid' => $cid,
'data' => $data,
'created' => REQUEST_TIME,
'expire' => $expire,
'tags' => $this
->flattenTags($tags),
);
}