BoundStatement boundStatement = insertPS.bind();
int i = 0;
boundStatement.setString(i++, agentRollupId);
boundStatement.setString(i++, gaugeName);
boundStatement.setInt(i++, getMaxTTL());
<BUG>return ImmutableList.of(Sessions.executeAsyncWithOnFailure(session, boundStatement,

() -> rateLimiter.invalidate(rateLimiterKey)));
}</BUG>
private int getMaxTTL() throws Exception {

BoundStatement boundStatement = insertPS.bind();
int i = 0;
boundStatement.setString(i++, agentRollupId);
boundStatement.setString(i++, gaugeName);
boundStatement.setInt(i++, getMaxTTL());
ResultSetFuture future = Sessions.executeAsyncWithOnFailure(session, boundStatement,
() -> rateLimiter.invalidate(rateLimiterKey));
future.addListener(() -> cache.invalidate(agentRollupId), MoreExecutors.directExecutor());
return ImmutableList.of(future);
}
private int getMaxTTL() throws Exception {
