Convenience function to insert a new row or update an existing row.
if set, will be used to expire the row when requesting data before it has expired.