Package org.springframework.data.redis.connection

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


      if (!connHolder.isTransactionSyncronisationActive()) {
        connHolder.setTransactionSyncronisationActive(true);
       
        RedisConnection conn = connHolder.getConnection();
        conn.multi();

        TransactionSynchronizationManager.registerSynchronization(new RedisTransactionSynchronizer(connHolder, conn));
      }
    }
  }
View Full Code Here


    connection.close();
    // The shared connection should not be closed
    connection.ping();

    // The dedicated connection should not be closed b/c it's part of a pool
    connection.multi();
    connection.close();
    factory2.destroy();
    pool.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.