ActiveRecord::ConnectionAdapters::StatementPool
# File lib/active_record/connection_adapters/mysql_adapter.rb, line 101 def [](key); cache[key]; end
# File lib/active_record/connection_adapters/mysql_adapter.rb, line 105 def []=(sql, key) while @max <= cache.size cache.shift.last[:stmt].close end cache[sql] = key end
# File lib/active_record/connection_adapters/mysql_adapter.rb, line 112 def clear cache.values.each do |hash| hash[:stmt].close end cache.clear end
# File lib/active_record/connection_adapters/mysql_adapter.rb, line 103 def delete(key); cache.delete(key); end
# File lib/active_record/connection_adapters/mysql_adapter.rb, line 99 def each(&block); cache.each(&block); end
Generated with the Darkfish Rdoc Generator 2.