方法
- A
- C
- D
- I
- L
- N
- P
- S
- V
属性
[RW] | check_schema_cache_dump_version | |
[RW] | use_schema_cache_dump |
类公共方法
new(cache_path, cache = nil) 链接
实例公共方法
add(pool, name) 链接
cached?(table_name) 链接
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 79 def cached?(table_name) if @cache.nil? # If `check_schema_cache_dump_version` is enabled we can't load # the schema cache dump without connecting to the database. unless self.class.check_schema_cache_dump_version @cache = load_cache(nil) end end @cache&.cached?(table_name) end