def expire(self, ttl=None):
        if ttl is not None:
            self.database.expire(self.key, ttl)
        else:
            self.database.persist(self.key)
Expire the given key in the given number of seconds.
dataset/ETHPy150Open coleifer/walrus/walrus/containers.py/Container.expire