Method: Colossus::Engine::MemoryThreadSafe::ClientSessionStore#initialize
- Defined in:
- lib/colossus/engines/memory_thread_safe/client_session_store.rb
#initialize(ttl) ⇒ ClientSessionStore
Returns a new instance of ClientSessionStore.
10 11 12 13 14 15 16 |
# File 'lib/colossus/engines/memory_thread_safe/client_session_store.rb', line 10 def initialize(ttl) @sessions = ThreadSafe::Cache.new do |hash, key| hash[key] = Colossus::Engine::MemoryThreadSafe::ClientSession.new end @last_status = DISCONNECTED @ttl = ttl end |