Class
Rack::MiniProfiler::MemoryStore
In:
lib/mini_profiler/storage/memory_store.rb
Parent:
AbstractStore
Methods
cleanup_cache
get_unviewed_ids
initialize_cleanup_thread
initialize_locks
load
new
save
set_unviewed
set_viewed
Classes and Modules
Class
Rack::MiniProfiler::MemoryStore::CacheCleanupThread
Constants
EXPIRES_IN_SECONDS
=
60 * 60 * 24
CLEANUP_INTERVAL
=
10
CLEANUP_CYCLE
=
3600
Public Class methods
new
(args = nil)
Public Instance methods
cleanup_cache
()
get_unviewed_ids
(user)
initialize_cleanup_thread
(args={})
FIXME: use weak ref, trouble it may be broken in 1.9 so need to use the ‘ref’ gem
initialize_locks
()
load
(id)
save
(page_struct)
set_unviewed
(user, id)
set_viewed
(user, id)
[Validate]