Package org.springframework.data.redis.connection

Examples of org.springframework.data.redis.connection.DefaultStringRedisConnection.eval()


        final LettuceConnectionFactory factory2 = new LettuceConnectionFactory(SettingsUtils.getHost(),
            SettingsUtils.getPort());
        factory2.afterPropertiesSet();
        DefaultStringRedisConnection conn2 = new DefaultStringRedisConnection(factory2.getConnection());
        try {
          conn2.eval("local time=1 while time < 10000000000 do time=time+1 end", ReturnType.BOOLEAN, 0);
        } catch (DataAccessException e) {
          scriptDead.set(true);
        }
        conn2.close();
        factory2.destroy();
View Full Code Here


        final LettuceConnectionFactory factory2 = new LettuceConnectionFactory(SettingsUtils.getHost(),
            SettingsUtils.getPort());
        factory2.afterPropertiesSet();
        DefaultStringRedisConnection conn2 = new DefaultStringRedisConnection(factory2.getConnection());
        try {
          conn2.eval("local time=1 while time < 10000000000 do time=time+1 end", ReturnType.BOOLEAN, 0);
        } catch (DataAccessException e) {
          scriptDead.set(true);
        }
        conn2.close();
        factory2.destroy();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.