class Cinch::CachedList
@api private @since 2.0.0 @version 1.1.0 @note In prior versions, this class was called CacheManager
Public Class Methods
new(bot)
click to toggle source
# File lib/cinch/cached_list.rb, line 11 def initialize(bot) @bot = bot @cache = {} @mutex = Mutex.new end
Public Instance Methods
each(&block)
click to toggle source
# File lib/cinch/cached_list.rb, line 17 def each(&block) @cache.each_value(&block) end