public function register($name, $window = 3600, $identifier = null)
    {
        $this
            ->connection
            ->insert($this->tableName, [
                'event'      => $name,
                'identifier' => $identifier ?: $this->ip(),
                'timestamp'  => time(),
                'expiration' => time() + $window,
            ]);
    }