blob: 5fb2f6f1e4f5775cc97fb276e7916bc0317297f5 [file] [log] [blame]
h1. expire
h2. Purpose
Expires a domain instance using the given time to live (TTL) in seconds
h2. Examples
Instance method:
{code}
def person = Person.get(1)
person.expire(60) // expire after 60 seconds
{code}
Static method:
{code}
Person.expire(1, 60) // expire Person:1 after 60 seconds
{code}
h2. 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.