Class: LruRedux::TTL::ThreadSafeCache

Inherits:
Cache
  • Object
show all
Includes:
Util::SafeSync
Defined in:
lib/lru_redux/ttl/thread_safe_cache.rb

Instance Attribute Summary

Attributes inherited from Cache

#ignore_nil, #max_size, #ttl

Instance Method Summary collapse

Methods included from Util::SafeSync

#[], #[]=, #clear, #count, #delete, #each, #evict, #fetch, #getset, #has_key?, #ignore_nil=, #initialize, #key?, #length, #max_size=, #size, #to_a, #ttl=, #values

Methods inherited from Cache

#[], #[]=, #clear, #count, #delete, #each, #fetch, #getset, #initialize, #key?, #to_a, #values

Instance Method Details

#expireObject



8
9
10
11
12
# File 'lib/lru_redux/ttl/thread_safe_cache.rb', line 8

def expire
  synchronize do
    super
  end
end