String redisHtsDatapointKey = toRedisHtsDatapointKey(redisKey);
pipeline.hmset(redisHtsDatapointKey, htsMap);
String redisHtsDaysKey = toRedisHtsDaysKey(redisKey);
for (String dateAsIntText : dates.inverse().keySet()) {
pipeline.zrem(redisHtsDaysKey, dateAsIntText);
}
for (Entry<Double, String> entry : dates.entrySet()) {
pipeline.zadd(redisHtsDaysKey, entry.getKey(), entry.getValue());
}