dist/cache/UserCache.js
/**
     * Find a user by providing a filter function which returns true upon success and false otherwise
     * @param fn filter function to use for filtering for a user
     * @param ids List of ids that should be used as the scope of the filter
     * @returns Returns a User Cache with a bound user or null if no user was found
     */
Find a user by providing a filter function which returns true upon success and false otherwise
@param fn filter function to use for filtering for a user
@param ids List of ids that should be used as the scope of the filter
@returns Returns a User Cache with a bound user or null if no user was found
Find a user by providing a filter function which returns true upon success and false otherwise @param fn filter function to use for filtering for a user @param ids List of ids that should be used as the scope of the filter @returns Returns a User Cache with a bound user or null if no user was found
async find(fn, ids = undefined) {
        var _a;
        const user = await ((_a = this.storageEngine) === null || _a === void 0 ? void 0 : _a.find(fn, ids, this.namespace));
        if (!user)
            return null;
        return new UserCache(this.storageEngine, this.rain, user);
    }
async find ( fn , ids = undefined ) { var _a ; const user = await ( ( _a = this . storageEngine ) === null || _a === void 0 ? void 0 : _a . find ( fn , ids , this . namespace ) ) ; if ( ! user ) return null ; return new UserCache ( this . storageEngine , this . rain , user ) ; }
Find a user by providing a filter function which returns true upon success and false otherwise
 @param fn filter function to use for filtering for a user
 @param ids List of ids that should be used as the scope of the filter
 @returns Returns a User Cache with a bound user or null if no user was found
Find a user by providing a filter function which returns true upon success and false otherwise @param fn filter function to use for filtering for a user @param ids List of ids that should be used as the scope of the filter @returns Returns a User Cache with a bound user or null if no user was found