redisTemplate.opsForZSet().incrementScore
时间: 2024-01-07 09:05:13 浏览: 127
RedisTemplate常用集合使用说明-opsForZSet(六)
The redisTemplate.opsForZSet().incrementScore() method is used to increment the score of a member in a sorted set. It takes the following parameters:
- key: the key of the sorted set.
- member: the member whose score needs to be incremented.
- delta: the amount by which the score needs to be incremented.
If the member does not exist in the sorted set, it is added with the specified score. The method returns the new score of the member after the increment.
阅读全文