@Override
    public List<KeyInfo> getKeyInfos() {
        return PoolUtils.doWorkInPoolNicely(this.jedisPool, new PoolWork<Jedis, List<KeyInfo>>() {
            /**
             * {@inheritDoc}
             */
            @Override
            public List<KeyInfo> doWork(final Jedis jedis) throws Exception {
                final Set<String> keys = jedis.keys(
                        KeysDAORedisImpl.this.config.getNamespace() + COLON + "*");
                final List<KeyInfo> keyInfos = new ArrayList<KeyInfo>(keys.size());
                for (final String key : keys) {
                    keyInfos.add(new KeyDAOPoolWork(key).doWork(jedis));
                }
                Collections.sort(keyInfos);
                return keyInfos;
            }
        });
    }
@ Override public List < KeyInfo > getKeyInfos ( ) { return PoolUtils . doWorkInPoolNicely ( this . jedisPool , new PoolWork < Jedis , List < KeyInfo > > ( ) { @ Override public List < KeyInfo > doWork ( final Jedis jedis ) throws Exception { final Set < String > keys = jedis . keys ( KeysDAORedisImpl . this . config . getNamespace ( ) + COLON + "*" ) ; final List < KeyInfo > keyInfos = new ArrayList < KeyInfo > ( keys . size ( ) ) ; for ( final String key : keys ) { keyInfos . add ( new KeyDAOPoolWork ( key ) . doWork ( jedis ) ) ; } Collections . sort ( keyInfos ) ; return keyInfos ; } } ) ; }
{@inheritDoc}