Class: Cinch::CachedList Private
- Inherits:
-
Object
- Object
- Cinch::CachedList
- Includes:
- Enumerable
- Defined in:
- lib/cinch/cached_list.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Note:
In prior versions, this class was called CacheManager
Direct Known Subclasses
Instance Method Summary collapse
-
#each(&block) ⇒ Object
private
-
#initialize(bot) ⇒ CachedList
constructor
private
A new instance of CachedList.
Constructor Details
#initialize(bot) ⇒ CachedList
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of CachedList.
9 10 11 12 13 |
# File 'lib/cinch/cached_list.rb', line 9 def initialize(bot) @bot = bot @cache = {} @mutex = Mutex.new end |
Instance Method Details
#each(&block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'lib/cinch/cached_list.rb', line 15 def each(&block) @cache.each_value(&block) end |