Module: Redpear::Model::Expiration
- Included in:
- Redpear::Model
- Defined in:
- lib/redpear/model/expiration.rb
Instance Method Summary collapse
-
#expire(value) ⇒ Object
Expires the record.
-
#ttl ⇒ Integer
May return nil for non-expiring records and non-existing records.
Instance Method Details
#expire(time) ⇒ Object #expire(number) ⇒ Object
Expires the record.
8 9 10 |
# File 'lib/redpear/model/expiration.rb', line 8 def expire(value) attributes.expire(value) end |
#ttl ⇒ Integer
May return nil for non-expiring records and non-existing records.
14 15 16 |
# File 'lib/redpear/model/expiration.rb', line 14 def ttl attributes.ttl end |