Class: Wee::Application::SessionCache

Inherits:
LRUCache show all
Defined in:
lib/wee/application.rb

Instance Method Summary collapse

Methods inherited from LRUCache

#delete, #delete_if, #each, #fetch, #has_key?, #initialize, #store

Constructor Details

This class inherits a constructor from Wee::LRUCache

Instance Method Details

#garbage_collectObject



14
15
16
# File 'lib/wee/application.rb', line 14

def garbage_collect
  delete_if {|id, session| session.dead? }
end