# activerecord-spanner-adapter - Class ActiveRecord::ConnectionAdapters::SpannerSchemaCache (v2.2.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.2.0 (latest)](https://docs.cloud.google.com/ruby/docs/reference/activerecord-spanner-adapter/latest/ActiveRecord-ConnectionAdapters-SpannerSchemaCache)
- [2.1.0](https://docs.cloud.google.com/ruby/docs/reference/activerecord-spanner-adapter/2.1.0/ActiveRecord-ConnectionAdapters-SpannerSchemaCache)
- [2.0.0](https://docs.cloud.google.com/ruby/docs/reference/activerecord-spanner-adapter/2.0.0/ActiveRecord-ConnectionAdapters-SpannerSchemaCache)
Reference documentation and code samples for the activerecord-spanner-adapter class ActiveRecord::ConnectionAdapters::SpannerSchemaCache.

## Inherits

- Object

## Methods

### #clear!

    def clear!()

### #initialize

    def initialize(conn) -> SpannerSchemaCache

**Returns**

- ([SpannerSchemaCache](https://docs.cloud.google.com/ruby/docs/reference/activerecord-spanner-adapter/latest/ActiveRecord-ConnectionAdapters-SpannerSchemaCache)) --- a new instance of SpannerSchemaCache

### #primary_and_parent_keys

    def primary_and_parent_keys(table_name)