Atomically set value and expiration