class MiniMime::Db::Cache
Public Class Methods
Public Instance Methods
Source
# File lib/mini_mime.rb, line 83 def []=(key, val) rval = @hash[key] = val @hash.shift if @hash.length > @size rval end
Source
# File lib/mini_mime.rb, line 89 def fetch(key, &blk) @hash.fetch(key, &blk) end