<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def expire(self, key, max_age, **opts):
 """Set the maximum age of a given key, in seconds."""

        self.expire_at(key, time() + max_age, **opts)