# File lib/cache_manager.rb, line 62 def [](key) if @cache.key? key if ! @expire or @cache[key].timestamp >= Time.now - @expire @cache[key].update_time return @cache[key].value end end self[key] = @block.call key end