Class: LRUHash::NoopMutex
- Inherits:
-
Object
- Object
- LRUHash::NoopMutex
- Defined in:
- lib/semian/lru_hash.rb
Overview
This LRU (Least Recently Used) hash will allow the cleaning of resources as time goes on. The goal is to remove the least recently used resources everytime we set a new resource. A default window of 5 minutes will allow empty item to stay in the hash for a maximum of 5 minutes
Instance Method Summary collapse
Instance Method Details
#locked? ⇒ Boolean
25 26 27 |
# File 'lib/semian/lru_hash.rb', line 25 def locked? true end |
#owned? ⇒ Boolean
29 30 31 |
# File 'lib/semian/lru_hash.rb', line 29 def owned? true end |
#synchronize ⇒ Object
13 14 15 |
# File 'lib/semian/lru_hash.rb', line 13 def synchronize(*) yield end |
#try_lock ⇒ Object
17 18 19 |
# File 'lib/semian/lru_hash.rb', line 17 def try_lock true end |
#unlock ⇒ Object
21 22 23 |
# File 'lib/semian/lru_hash.rb', line 21 def unlock true end |