Skip to content

Commit c19760f

Browse files
committed
Internal docs for the query cache registry
1 parent b46dba9 commit c19760f

File tree

1 file changed

+6
-0
lines changed
  • activerecord/lib/active_record/connection_adapters/abstract

1 file changed

+6
-0
lines changed

activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ def check_version
106106
end
107107
end
108108

109+
# Each connection pool has one of these registries. They map execution
110+
# contexts to query cache stores.
111+
#
112+
# The keys of the internal map are threads or fibers (whatever
113+
# ActiveSupport::IsolatedExecutionState.context returns), and their
114+
# associated values are their respective query cache stores.
109115
class QueryCacheRegistry # :nodoc:
110116
def initialize
111117
@mutex = Mutex.new

0 commit comments

Comments
 (0)