ConnectionAdapters::StatementPool
# File lib/active_record/connection_adapters/postgresql_adapter.rb, line 261 261: def [](key); cache[key]; end
# File lib/active_record/connection_adapters/postgresql_adapter.rb, line 268 268: def []=(sql, key) 269: while @max <= cache.size 270: dealloc(cache.shift.last) 271: end 272: @counter += 1 273: cache[sql] = key 274: end
# File lib/active_record/connection_adapters/postgresql_adapter.rb, line 276 276: def clear 277: cache.each_value do |stmt_key| 278: dealloc stmt_key 279: end 280: cache.clear 281: end
# File lib/active_record/connection_adapters/postgresql_adapter.rb, line 283 283: def delete(sql_key) 284: dealloc cache[sql_key] 285: cache.delete sql_key 286: end
# File lib/active_record/connection_adapters/postgresql_adapter.rb, line 259 259: def each(&block); cache.each(&block); end
# File lib/active_record/connection_adapters/postgresql_adapter.rb, line 260 260: def key?(key); cache.key?(key); end
# File lib/active_record/connection_adapters/postgresql_adapter.rb, line 289 289: def cache 290: @cache[$$] 291: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.