List of usage examples for org.springframework.data.redis.core BoundHashOperations putIfAbsent
@Nullable Boolean putIfAbsent(HK key, HV value);
From source file:com.chessix.vas.service.RedisStorage.java
@Override public boolean create(final String clasId, final String accountId) { final BoundHashOperations<String, Object, Object> ops = redisTemplate.boundHashOps(clasId); return ops.putIfAbsent(accountId, "0"); }