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

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

Introduction

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

Prototype

void set(K key, long index, V value);

Source Link

Document

Set the value list element at index .

Usage

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

public void listSet(K key, long index, V bean) {
    ListOperations<K, V> listOperations = redisTemplate.opsForList();
    listOperations.set(key, index, bean);
}