public RedisBackingStore getRedis(String storeName) {
        if (isNull(client)) {
            synchronized (mutex) {
                if (isNull(client)) { // double-guard
                    final Config config;
                    if (nonNull(overrideConfig)) {
                        config = overrideConfig;
                    } else if (nonNull(configFile)) {
                        config = loadConfigFromFile();
                    } else {
                        throw new IllegalStateException("No Redisson configuration provided");
                    }
                    config.setCodec(new StringCodec());
                    client = Redisson.create(config);
                }
            }
        }
        return new RedisBackingStore(client, storeName);
    }
public RedisBackingStore getRedis ( String storeName ) { if ( isNull ( client ) ) { synchronized ( mutex ) { if ( isNull ( client ) ) { final Config config ; if ( nonNull ( overrideConfig ) ) { config = overrideConfig ; } else if ( nonNull ( configFile ) ) { config = loadConfigFromFile ( ) ; } else { throw new IllegalStateException ( "No Redisson configuration provided" ) ; } config . setCodec ( new StringCodec ( ) ) ; client = Redisson . create ( config ) ; } } } return new RedisBackingStore ( client , storeName ) ; }
@param storeName a name to associate with the instance
@return a new or existing Redis client for the given store name