Sha256: b458353419d6cf7b1e5211aaa2c041abfb7ba22798f4e414d99bb629946dc271
Contents?: true
Size: 382 Bytes
Versions: 2
Compression:
Stored size: 382 Bytes
Contents
module Nitro class MemorySessionStore < SyncHash # Perform session garbage collection. Typically this method # is called from a cron like mechanism (for example using # script/runner). def gc! delete_if { |key, s| s.expired? } end alias :all :values end Session.store = MemorySessionStore.new end # * George Moschovitis <gm@navel.gr>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.26.0 | lib/nitro/session/memory.rb |
nitro-0.27.0 | lib/nitro/session/memory.rb |