Class: Mack::SessionStore::Cachetastic
- Defined in:
- lib/mack-caching/sessions/cachetastic_session_store.rb
Class Method Summary collapse
- .expire(id, *args) ⇒ Object
- .expire_all ⇒ Object
- .get(id, request, response, cookies) ⇒ Object
- .set(id, request, response, cookies) ⇒ Object
Class Method Details
.expire(id, *args) ⇒ Object
15 16 17 |
# File 'lib/mack-caching/sessions/cachetastic_session_store.rb', line 15 def expire(id, *args) ::Cachetastic::Caches::MackSessionCache.delete(id) end |
.expire_all ⇒ Object
19 20 21 |
# File 'lib/mack-caching/sessions/cachetastic_session_store.rb', line 19 def expire_all ::Cachetastic::Caches::MackSessionCache.expire_all end |
.get(id, request, response, cookies) ⇒ Object
7 8 9 |
# File 'lib/mack-caching/sessions/cachetastic_session_store.rb', line 7 def get(id, request, response, ) ::Cachetastic::Caches::MackSessionCache.get(id) end |
.set(id, request, response, cookies) ⇒ Object
11 12 13 |
# File 'lib/mack-caching/sessions/cachetastic_session_store.rb', line 11 def set(id, request, response, ) ::Cachetastic::Caches::MackSessionCache.set(id, request.session) end |