method

write_multi_entries

rails latest stable - Class: ActiveSupport::Cache::RedisCacheStore::LocalCacheWithRaw

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.1.7.7) is shown here.

write_multi_entries(entries, **options)
private

No documentation available.

# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 87
          def write_multi_entries(entries, **options)
            if options[:raw] && local_cache
              raw_entries = entries.map do |key, entry|
                raw_entry = Entry.new(serialize_entry(entry, raw: true))
                raw_entry.expires_at = entry.expires_at
              end.to_h

              super(raw_entries, **options)
            else
              super
            end
          end