services/adapters/redis/redis.adapter.js
function get(req) {
        var cache = caches[this.name];
        var returnVal = null;

        if (cache && !redisOffline) {
            try {
                returnVal = cache.get(req.key);
            }
            catch (err) {
                console.log('redis get err: ' + err);
            }
        }

        return new Q(returnVal);
    }
function get(req) {
        var cache = caches[this.name];
        var returnVal = null;

        if (cache && !redisOffline) {
            try {
                returnVal = cache.get(req.key);
            }
            catch (err) {
                console.log('redis get err: ' + err);
            }
        }

        return new Q(returnVal);
    }
function get ( req ) { var cache = caches [ this . name ] ; var returnVal = null ; if ( cache && ! redisOffline ) { try { returnVal = cache . get ( req . key ) ; } catch ( err ) { console . log ( 'redis get err: ' + err ) ; } } return new Q ( returnVal ) ; }
Get a value from cache
@param req
Get a value from cache