Module: SmartCacheTenant::CacheablePersistence
- Defined in:
- lib/smart_cache_tenant/cacheable_persistence.rb
Instance Method Summary collapse
- #insert_all(attributes, returning: nil, unique_by: nil, record_timestamps: nil) ⇒ Object
- #upsert_all(attributes, on_duplicate: :update, update_only: nil, returning: nil, unique_by: nil, record_timestamps: nil) ⇒ Object
Instance Method Details
#insert_all(attributes, returning: nil, unique_by: nil, record_timestamps: nil) ⇒ Object
5 6 7 8 9 |
# File 'lib/smart_cache_tenant/cacheable_persistence.rb', line 5 def insert_all(attributes, returning: nil, unique_by: nil, record_timestamps: nil) result = super bump_smart_cache_for_class_bulk_write!(attributes) result end |
#upsert_all(attributes, on_duplicate: :update, update_only: nil, returning: nil, unique_by: nil, record_timestamps: nil) ⇒ Object
11 12 13 14 15 |
# File 'lib/smart_cache_tenant/cacheable_persistence.rb', line 11 def upsert_all(attributes, on_duplicate: :update, update_only: nil, returning: nil, unique_by: nil, record_timestamps: nil) result = super bump_smart_cache_for_class_bulk_write!(attributes) result end |