ConnectionAdapters::StatementPool
# File lib/active_record/connection_adapters/postgresql_adapter.rb, line 264 264: def [](key); cache[key]; end
# File lib/active_record/connection_adapters/postgresql_adapter.rb, line 271 271: def []=(sql, key) 272: while @max <= cache.size 273: dealloc(cache.shift.last) 274: end 275: @counter += 1 276: cache[sql] = key 277: end
# File lib/active_record/connection_adapters/postgresql_adapter.rb, line 279 279: def clear 280: cache.each_value do |stmt_key| 281: dealloc stmt_key 282: end 283: cache.clear 284: end
# File lib/active_record/connection_adapters/postgresql_adapter.rb, line 286 286: def delete(sql_key) 287: dealloc cache[sql_key] 288: cache.delete sql_key 289: end
# File lib/active_record/connection_adapters/postgresql_adapter.rb, line 262 262: def each(&block); cache.each(&block); end
# File lib/active_record/connection_adapters/postgresql_adapter.rb, line 263 263: def key?(key); cache.key?(key); end
# File lib/active_record/connection_adapters/postgresql_adapter.rb, line 292 292: def cache 293: @cache[$$] 294: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.