https://github.com/gregorym/daily_expire
Expire your cache every day or any day of the week
https://github.com/gregorym/daily_expire
Last synced: 7 months ago
JSON representation
Expire your cache every day or any day of the week
- Host: GitHub
- URL: https://github.com/gregorym/daily_expire
- Owner: gregorym
- Created: 2012-06-25T17:39:33.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-12T22:17:55.000Z (over 12 years ago)
- Last Synced: 2025-03-22T19:23:30.194Z (10 months ago)
- Language: Ruby
- Size: 102 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Introduction
DailyExpire is a gem that expire your cache every day or any day of the week.
# Usage
```Erb
<% cache [:deals], :every => :day, :at => '5am' do %>
<% Deals.today.each do |deal| %>
<%= render deal %>
<% end %>
<% end %>
```