redis的setIfAbsent

setIfAbsent(K key, V value)

 

      如果键不存在则新增,存在则不改变已经有的值。

posted @ 2019-10-05 14:54  M号开发者  阅读(30762)  评论(0)    收藏  举报