opsforvalue().increment后取
时间: 2023-08-30 08:08:49 浏览: 77
根据引用和引用,opsForValue().increment方法可以用于以增量方式存储long值和double值。在使用该方法后,可以通过获取相应的变量来获取增量后的值。例如,可以使用stringValueLong来获取存储long值后的结果,使用stringValueDouble来获取存储double值后的结果。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [stringRedisTemplate之opsForValue使用说明](https://blog.csdn.net/qq_43409811/article/details/108876910)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Redis 计数器 高并发的应用](https://blog.csdn.net/Anenan/article/details/84578987)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文