Examples of openPipeline()


Examples of org.springframework.data.keyvalue.redis.connection.RedisConnection.openPipeline()

    boolean existingConnection = TransactionSynchronizationManager.hasResource(factory);
    preProcessConnection(conn, existingConnection);

    boolean pipelineStatus = conn.isPipelined();
    if (pipeline && !pipelineStatus) {
      conn.openPipeline();
    }

    try {
      RedisConnection connToExpose = (exposeConnection ? conn : createRedisConnectionProxy(conn));
      T result = action.doInRedis(connToExpose);
View Full Code Here

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

  @IfProfileValue(name = "runLongTests", value = "true")
  public void testMultiThreadsOneBlocking() throws Exception {
    Thread th = new Thread(new Runnable() {
      public void run() {
        DefaultStringRedisConnection conn2 = new DefaultStringRedisConnection(connectionFactory.getConnection());
        conn2.openPipeline();
        conn2.bLPop(3, "multilist");
        conn2.closePipeline();
        conn2.close();
      }
    });
View Full Code Here

Examples of org.springframework.data.redis.connection.RedisConnection.openPipeline()

      RedisConnection connToUse = preProcessConnection(conn, existingConnection);

      boolean pipelineStatus = connToUse.isPipelined();
      if (pipeline && !pipelineStatus) {
        connToUse.openPipeline();
      }

      RedisConnection connToExpose = (exposeConnection ? connToUse : createRedisConnectionProxy(connToUse));
      T result = action.doInRedis(connToExpose);
View Full Code Here

Examples of org.springframework.data.redis.connection.RedisConnection.openPipeline()

    factory2.setHostName(SettingsUtils.getHost());
    factory2.setPort(SettingsUtils.getPort());
    factory2.setDatabase(1);
    factory2.afterPropertiesSet();
    RedisConnection conn2 = factory2.getConnection();
    conn2.openPipeline();
    conn2.close();
    factory2.getConnection();
    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.