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

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

Introduction

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

Prototype

@Nullable
Long rightPush(K key, V value);

Source Link

Document

Append value to key .

Usage

From source file:com.company.project.service.dao.RedisDao.java

/**
 * Push a value to the right of list/*from  w w w .j a  v a 2 s. c o m*/
 * @param key
 * @param value 
 */
public void rightPushToList(String key, String value) {
    ListOperations opsForList = redisTemplate.opsForList();
    opsForList.rightPush(key, value);
}