Class: Mack::SessionStore::Cachetastic

Inherits:
Base
  • Object
show all
Defined in:
lib/mack-caching/sessions/cachetastic_session_store.rb

Class Method Summary collapse

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_allObject



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, cookies)
  ::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, cookies)
  ::Cachetastic::Caches::MackSessionCache.set(id, request.session)
end