Class: Cinch::CacheManager

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/cinch/cache_manager.rb

Direct Known Subclasses

ChannelManager, UserManager

Instance Method Summary collapse

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