List of usage examples for org.springframework.data.redis.core ListOperations remove
@Nullable
Long remove(K key, long count, Object value);
From source file:com.easarrive.datasource.redis.etago.AbstractDaoByRedisTemplate.java
public Long listDelete(K key, long index) { ListOperations<K, V> listOperations = redisTemplate.opsForList(); Long count = listOperations.remove(key, index, null); return count; }
From source file:com.company.project.service.dao.RedisDao.java
/** * Remove an element from list/*from www. j a v a 2 s. co m*/ * @param key * @param index * @param object */ public void removeFromList(String key, int index, Object object) { ListOperations opsForList = redisTemplate.opsForList(); opsForList.remove(key, index, object); //start and end of range. -1 means up to end of list }