mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
9de17ac4a4
Sometime it can be useful to set a cache entry expiry not relative to current time, but as an absolute timestamps, e.g.: - If you want to cache an API token that was provided to you with a precise expiry time. - If you want to cache something until a precise cutoff time, e.g. `expires_at: Time.now.at_end_of_hour` This leaves the `@created_at` variable in a weird state, but this is to avoid breaking the binary format. |
||
---|---|---|
.. | ||
behaviors | ||
stores | ||
behaviors.rb | ||
cache_entry_test.rb | ||
cache_key_test.rb | ||
cache_store_logger_test.rb | ||
cache_store_namespace_test.rb | ||
cache_store_setting_test.rb | ||
local_cache_middleware_test.rb |