Example usage for org.springframework.data.redis.core ListOperations index

List of usage examples for org.springframework.data.redis.core ListOperations index

Introduction

In this page you can find the example usage for org.springframework.data.redis.core ListOperations index.

Prototype

@Nullable
V index(K key, long index);

Source Link

Document

Get element at index form list at key .

Usage

From source file:com.easarrive.datasource.redis.etago.AbstractDaoByRedisTemplate.java

public V listGet(K key, long index) {
    ListOperations<K, V> listOperations = redisTemplate.opsForList();
    V object = listOperations.index(key, index);
    return object;
}