/** * Calls hincrbyfloat on the redis store. * * @param key * @param field * @param doubleValue */ public void hincrByFloat(String key, String field, double doubleValue) { connection.hincrbyfloat(key, field, doubleValue); if (keyExpiryTime != -1) { connection.expire(key, keyExpiryTime); } }
private double add(final String key, final double value) { RedisConnection<String, String> redis = ChunkControl.getPlugin().redis(); return redis.hincrbyfloat( String.format("chunk:%s:%d", key, chunk.getX()), String.format("%d", chunk.getZ()), value); }