List of usage examples for org.springframework.data.redis.core BoundHashOperations increment
@Nullable
Double increment(HK key, double delta);
From source file:com.chessix.vas.service.RedisStorage.java
@Override public void transfer(final String clasId, final String fromAccountId, final String toAccountId, final int value) { final BoundHashOperations<String, Object, Object> ops = redisTemplate.boundHashOps(clasId); ops.increment(fromAccountId, -value); ops.increment(toAccountId, value);// ww w .j a v a 2s. c o m }