Java Code Examples for org.springframework.data.redis.core.RedisTemplate#opsForZSet()

The following examples show how to use org.springframework.data.redis.core.RedisTemplate#opsForZSet() . 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: RedisConfig.java    From sophia_scaffolding with Apache License 2.0 2 votes vote down vote up
/**
 * 实例化 ZSetOperations 对象,可以使用 ZSet 操作
 *
 * @param redisTemplate
 * @return
 */
@Bean
public ZSetOperations<String, Object> zSetOperations(RedisTemplate<String, Object> redisTemplate) {
    return redisTemplate.opsForZSet();
}
 
Example 2
Source File: RedisConfig.java    From sophia_scaffolding with Apache License 2.0 2 votes vote down vote up
/**
 * 实例化 ZSetOperations 对象,可以使用 ZSet 操作
 *
 * @param redisTemplate
 * @return
 */
@Bean
public ZSetOperations<String, Object> zSetOperations(RedisTemplate<String, Object> redisTemplate) {
    return redisTemplate.opsForZSet();
}
 
Example 3
Source File: RedisConfig.java    From sophia_scaffolding with Apache License 2.0 2 votes vote down vote up
/**
 * 实例化 ZSetOperations 对象,可以使用 ZSet 操作
 *
 * @param redisTemplate
 * @return
 */
@Bean
public ZSetOperations<String, Object> zSetOperations(RedisTemplate<String, Object> redisTemplate) {
    return redisTemplate.opsForZSet();
}