redis的setIfAbsent

setIfAbsent(K key, V value)

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

原文地址:https://www.cnblogs.com/a1304908180/p/11624708.html