private function updateRecord(string $id, string $key, string $value) : bool
    {
        $query = sprintf(
            'UPDATE %s SET %s = ?, %s = CASE WHEN %s = ? THEN %s + 1 ELSE ? END WHERE %s = ? AND %s = ?',
            $this->options['table-name'],
            $this->options['value-column'],
            $this->options['last-access-column'],
            $this->options['last-access-column'],
            $this->options['last-access-column'],
            $this->options['id-column'],
            $this->options['key-column']
        );

        $statement = $this->pdo->prepare($query);
        $statement->execute([$value, $time = time(), $time, $id, $key]);

        return $statement->rowCount() !== 0;
    }