public function __construct(Repository $cache, ConnectionInterface $database) { $this->cache = $cache; $this->database = $database; }