public function set($id, $value, array $tags = []) { $this->values[$id] = $value; foreach ($tags as $tag) { $this->tags[$tag][] = $id; } }