# File src/LRUCache.rb, line 28 def [](key) r = nil if @cache.has_key? key r = @cache[key] @queue.push @queue.delete(key) @ttl_cache[key] = Time.now.to_i end r end