async getByURL(url) {
        debug('Getting link redirect for', url.pathname);
        // Strip subdirectory from path
        const from = this.stripSubdirectoryFromPath(url.pathname);

        if (this.#cache) {
            const cachedLink = await this.#cache.get(from);
            debug(`getByUrl ${url}: Cache ${cachedLink ? 'HIT' : 'MISS'}`);
            // Cache hit, serve from cache
            if (cachedLink) {
                return this.#fromSerialized(cachedLink);
            }
        }

        // Cache miss, fetch from the DB
        const linkRedirectModel = await this.#LinkRedirect.findOne({
            from
        }, {});

        if (linkRedirectModel) {
            const linkRedirect = this.fromModel(linkRedirectModel);
            if (this.#cache) {
                this.#cache.set(from, this.#serialize(linkRedirect));
            }
            return linkRedirect;
        }
    }
Get a LinkRedirect by its URL
@param {URL} url
@returns {Promise<InstanceType<LinkRedirect>|undefined>} LinkRedirect