@Override
    public Map<String, String> getRedisInfo() {
        return PoolUtils.doWorkInPoolNicely(this.jedisPool, new PoolWork<Jedis, Map<String, String>>() {
            /**
             * {@inheritDoc}
             */
            @Override
            public Map<String, String> doWork(final Jedis jedis) throws Exception {
                final Map<String, String> infoMap = new TreeMap<String, String>();
                final String infoStr = jedis.info();
                final String[] keyValueStrs = NEW_LINE_PATTERN.split(infoStr);
                for (final String keyValueStr : keyValueStrs) {
                    if (!keyValueStr.isEmpty() && keyValueStr.charAt(0) != '#') { // Ignore categories for now
                        final String[] keyAndValue = COLON_PATTERN.split(keyValueStr, 2);
                        final String value = (keyAndValue.length == 1) ? null : keyAndValue[1];
                        infoMap.put(keyAndValue[0], value);
                    }
                }
                return new LinkedHashMap<String, String>(infoMap);
            }
        });
    }
@ Override public Map < String , String > getRedisInfo ( ) { return PoolUtils . doWorkInPoolNicely ( this . jedisPool , new PoolWork < Jedis , Map < String , String > > ( ) { @ Override public Map < String , String > doWork ( final Jedis jedis ) throws Exception { final Map < String , String > infoMap = new TreeMap < String , String > ( ) ; final String infoStr = jedis . info ( ) ; final String [ ] keyValueStrs = NEW_LINE_PATTERN . split ( infoStr ) ; for ( final String keyValueStr : keyValueStrs ) { if ( ! keyValueStr . isEmpty ( ) && keyValueStr . charAt ( 0 ) != '#' ) { final String [ ] keyAndValue = COLON_PATTERN . split ( keyValueStr , 2 ) ; final String value = ( keyAndValue . length == 1 ) ? null : keyAndValue [ 1 ] ; infoMap . put ( keyAndValue [ 0 ] , value ) ; } } return new LinkedHashMap < String , String > ( infoMap ) ; } } ) ; }
{@inheritDoc}