Purpose
Expires a domain instance using the given time to live (TTL) in seconds
Examples
Instance method:
def person = Person.get(1)
person.expire(60) // expire after 60 seconds
Static method:
Person.expire(1, 60) // expire Person:1 after 60 seconds
Description
Redis supports expiring of individual entries after a timeout (time to live) period. The expire
method allows you to expire an object persisted to Redis.