Class: Cinch::CacheManager
- Inherits:
-
Object
- Object
- Cinch::CacheManager
- Includes:
- Enumerable
- Defined in:
- lib/cinch/cache_manager.rb
Direct Known Subclasses
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(bot) ⇒ CacheManager
constructor
A new instance of CacheManager.
Constructor Details
#initialize(bot) ⇒ CacheManager
Returns a new instance of CacheManager.
5 6 7 8 9 |
# File 'lib/cinch/cache_manager.rb', line 5 def initialize(bot) @bot = bot @cache = {} @mutex = Mutex.new end |
Instance Method Details
#each(&block) ⇒ Object
11 12 13 |
# File 'lib/cinch/cache_manager.rb', line 11 def each(&block) @cache.each_value(&block) end |