File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
activerecord/lib/active_record/connection_adapters/abstract Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,18 @@ def #{method_name}(...)
31
31
end
32
32
end
33
33
34
+ # This is the actual query cache store.
35
+ #
36
+ # It has an internal hash whose keys are either SQL strings, or arrays of
37
+ # two elements [SQL string, binds], if there are binds. The hash values
38
+ # are their corresponding ActiveRecord::Result objects.
39
+ #
40
+ # Keeping the hash size under max size is achieved with LRU eviction.
41
+ #
42
+ # The store gets passed a version object, which is shared among the query
43
+ # cache stores of a given connection pool (see ConnectionPoolConfiguration
44
+ # down below). The version value may be externally changed as a way to
45
+ # signal cache invalidation, that is why all methods have a guard for it.
34
46
class Store # :nodoc:
35
47
attr_accessor :enabled , :dirties
36
48
alias_method :enabled? , :enabled
You can’t perform that action at this time.
0 commit comments