instance method
pipeline_entries
Ruby on Rails 8.1.2
Since v7.1.6 PrivateSignature
pipeline_entries(entries, &block)
No documentation comment.
Parameters
-
entriesreq -
blockblock
Source
# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 325
def pipeline_entries(entries, &block)
redis.then { |c|
if c.is_a?(Redis::Distributed)
entries.group_by { |k, _v| c.node_for(k) }.each do |node, sub_entries|
node.pipelined { |pipe| yield(pipe, sub_entries) }
end
else
c.pipelined { |pipe| yield(pipe, entries) }
end
}
end
Defined in activesupport/lib/active_support/cache/redis_cache_store.rb line 325
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::RedisCacheStore