Sha256: 02a2db9209cd2b286f78552e4d29c86ceffd0e2260c825c231b9d8c6ab53a793
Contents?: true
Size: 319 Bytes
Versions: 2
Compression:
Stored size: 319 Bytes
Contents
module Isomorfeus module Transport class ThreadSessionStore def add(cookie:, user:) store[cookie] = user end def remove(cookie:) store.delete(cookie) end private def store Thread.current[:isomorfeus_session_store] ||= {} end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
isomorfeus-transport-1.0.0.zeta16 | lib/isomorfeus/transport/thread_session_store.rb |
isomorfeus-transport-1.0.0.zeta15 | lib/isomorfeus/transport/thread_session_store.rb |