services/adapters/redis/redis.adapter.js
function set(req) {
        var cache = caches[this.name];
        if (!cache) {
            cache = caches[this.name] = createLocalCache();
        }

        if (!redisOffline) {
            try {
                (req.value || !cache.del) ?
                    cache.set(req.key, req.value) :
                    cache.del(req.key);
            }
            catch (err) {
                console.log('redis set err: ' + err);
            }
        }
    }
function set(req) {
        var cache = caches[this.name];
        if (!cache) {
            cache = caches[this.name] = createLocalCache();
        }

        if (!redisOffline) {
            try {
                (req.value || !cache.del) ?
                    cache.set(req.key, req.value) :
                    cache.del(req.key);
            }
            catch (err) {
                console.log('redis set err: ' + err);
            }
        }
    }
function set ( req ) { var cache = caches [ this . name ] ; if ( ! cache ) { cache = caches [ this . name ] = createLocalCache ( ) ; } if ( ! redisOffline ) { try { ( req . value || ! cache . del ) ? cache . set ( req . key , req . value ) : cache . del ( req . key ) ; } catch ( err ) { console . log ( 'redis set err: ' + err ) ; } } }
Set a value in the cache
@param req
Set a value in the cache