Package org.springframework.data.redis.connection.StringRedisConnection

Examples of org.springframework.data.redis.connection.StringRedisConnection.StringTuple


    Cursor<StringTuple> tuples = connection.zScan("myset", ScanOptions.NONE);

    int count = 0;
    while (tuples.hasNext()) {

      StringTuple tuple = tuples.next();

      assertThat(tuple.getValueAsString(), anyOf(equalTo("Bob"), equalTo("James"), equalTo("Joe")));
      assertThat(tuple.getScore(), anyOf(equalTo(1D), equalTo(2D), equalTo(4D)));

      count++;
    }

    assertThat(count, equalTo(3));
View Full Code Here

TOP

Related Classes of org.springframework.data.redis.connection.StringRedisConnection.StringTuple

Copyright © 2018 www.massapicom. 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.