class ActiveSupport::Cache::Store

def write_multi_entries(hash, **options)

implement this method.
Writes multiple entries to the cache implementation. Subclasses MAY
def write_multi_entries(hash, **options)
  hash.each do |key, entry|
    write_entry key, entry, **options
  end
end