Java Code Examples for org.springframework.data.redis.connection.RedisZSetCommands#Limit

The following examples show how to use org.springframework.data.redis.connection.RedisZSetCommands#Limit . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RedissonStreamCommands.java    From redisson with Apache License 2.0 5 votes vote down vote up
@Override
public List<ByteRecord> xRange(byte[] key, Range<String> range, RedisZSetCommands.Limit limit) {
    return range(new RedisCommand<>("XRANGE",
        new ListMultiDecoder2(
                new ByteRecordReplayDecoder(key),
                new ObjectDecoder(new StreamIdDecoder()),
                new StreamObjectMapReplayDecoder()), RedisCommand.ValueType.MAP),
            key, range, limit);
}
 
Example 2
Source File: RedissonStreamCommands.java    From redisson with Apache License 2.0 5 votes vote down vote up
@Override
public List<ByteRecord> xRevRange(byte[] key, Range<String> range, RedisZSetCommands.Limit limit) {
    return range(new RedisCommand<>("XREVRANGE",
        new ListMultiDecoder2(
                new ByteRecordReplayDecoder(key),
                new ObjectDecoder(new StreamIdDecoder()),
                new StreamObjectMapReplayDecoder()), RedisCommand.ValueType.MAP),
            key, range, limit);
}
 
Example 3
Source File: RedissonStreamCommands.java    From redisson with Apache License 2.0 5 votes vote down vote up
@Override
public List<ByteRecord> xRange(byte[] key, Range<String> range, RedisZSetCommands.Limit limit) {
    return range(new RedisCommand<>("XRANGE",
        new ListMultiDecoder2(
                new ByteRecordReplayDecoder(key),
                new ObjectDecoder(new StreamIdDecoder()),
                new StreamObjectMapReplayDecoder()), RedisCommand.ValueType.MAP),
            key, range, limit);
}
 
Example 4
Source File: RedissonStreamCommands.java    From redisson with Apache License 2.0 5 votes vote down vote up
@Override
public List<ByteRecord> xRevRange(byte[] key, Range<String> range, RedisZSetCommands.Limit limit) {
    return range(new RedisCommand<>("XREVRANGE",
        new ListMultiDecoder2(
                new ByteRecordReplayDecoder(key),
                new ObjectDecoder(new StreamIdDecoder()),
                new StreamObjectMapReplayDecoder()), RedisCommand.ValueType.MAP),
            key, range, limit);
}