Update client code to allow specifying custom time-to-live values