RubyGems Navigation menu

expiration-date 1.1.0

Really simple caching by attaching an expiration date to attributes. The ExpirationDate module adss two methods to a class -- expiring_attr and expiring_class_attr. These two methods are used to declare attributes in the instance and in the class, respectively, that will expire after some period of seconds have elapsed. The attribute is re-initialized from the given block after it has expired. This is a very simple form of caching.

Versions:

  1. 1.1.0 - August 25, 2008 (15 KB)
  2. 1.0.1 - August 23, 2008 (15 KB)
  3. 1.0.0 - August 22, 2008 (15 KB)

Authors:

  • Tim Pease

Owners:

4d5b5dd4e263d780a5dfe7ac8b8ac98c

Sha 256 checksum:

afdc77454ba28d0c3cd3e7f89b705ba863f9ef740b97a7b89b98f15baa27f300

Total downloads 5,425

For this version 1,975

Required Ruby Version: None

Licenses:

N/A

Gemfile:
= Copy to clipboard Copied!

install:
= Copy to clipboard Copied!

Links: