dist/storageEngine/RedisStorageEngine.js
/**
     * Remove an object from the cache
     * @param id id of the object
     * @param useHash whether to use hash objects for this action
     */
Remove an object from the cache
@param id id of the object
@param useHash whether to use hash objects for this action
Remove an object from the cache @param id id of the object @param useHash whether to use hash objects for this action
remove(id, useHash = this.useHash) {
        return new Promise((res, rej) => {
            var _a, _b;
            if (useHash) {
                (_a = this.client) === null || _a === void 0 ? void 0 : _a.HKEYS(id, (err, hashKeys) => {
                    var _a;
                    if (err)
                        void rej(err);
                    (_a = this.client) === null || _a === void 0 ? void 0 : _a.HDEL(id, hashKeys, (e) => {
                        if (e)
                            void rej(e);
                        else
                            void res(undefined);
                    });
                });
            }
            else {
                (_b = this.client) === null || _b === void 0 ? void 0 : _b.DEL(id, (err) => {
                    if (err)
                        void rej(err);
                    else
                        void res(undefined);
                });
            }
        });
    }
remove ( id , useHash = this . useHash ) { return new Promise ( ( res , rej ) => { var _a , _b ; if ( useHash ) { ( _a = this . client ) === null || _a === void 0 ? void 0 : _a . HKEYS ( id , ( err , hashKeys ) => { var _a ; if ( err ) void rej ( err ) ; ( _a = this . client ) === null || _a === void 0 ? void 0 : _a . HDEL ( id , hashKeys , ( e ) => { if ( e ) void rej ( e ) ; else void res ( undefined ) ; } ) ; } ) ; } else { ( _b = this . client ) === null || _b === void 0 ? void 0 : _b . DEL ( id , ( err ) => { if ( err ) void rej ( err ) ; else void res ( undefined ) ; } ) ; } } ) ; }
Remove an object from the cache
 @param id id of the object
 @param useHash whether to use hash objects for this action
Remove an object from the cache @param id id of the object @param useHash whether to use hash objects for this action