Java Code Examples for org.springframework.data.redis.core.ListOperations#leftPushAll()

The following examples show how to use org.springframework.data.redis.core.ListOperations#leftPushAll() . 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: CacheServiceProvider.java    From AsuraFramework with Apache License 2.0 5 votes vote down vote up
@Override
public void pushList(final Position position, final String key, final String... values) {
	final ListOperations<String, String> operation = redisTemplate.opsForList();
	if (position == Position.LEFT) {
		operation.leftPushAll(getKey(key), values);
	} else {
		operation.rightPushAll(getKey(key), values);
	}
}
 
Example 2
Source File: RedisServiceImpl.java    From DouBiNovel with Apache License 2.0 4 votes vote down vote up
@Override
public Long leftPushAll(String key, String... values) {
    ListOperations<String, String> operations = this.template.opsForList();
    return operations.leftPushAll(key, values);
}