Class: Ractor::Cache::Store
- Inherits:
-
Object
- Object
- Ractor::Cache::Store
- Defined in:
- lib/ractor/cache/store.rb
Class Method Summary collapse
Instance Method Summary collapse
- #freeze ⇒ Object
-
#initialize(owner) ⇒ Store
constructor
Possibly redefined by
update.
Constructor Details
#initialize(owner) ⇒ Store
Possibly redefined by update
6 7 8 |
# File 'lib/ractor/cache/store.rb', line 6 def initialize(owner) # Possibly redefined by `update` @owner = owner end |
Class Method Details
.update(cached) ⇒ Object
16 17 18 19 |
# File 'lib/ractor/cache/store.rb', line 16 def update(cached) update_accessors(cached) update_init(cached) end |
Instance Method Details
#freeze ⇒ Object
10 11 12 13 |
# File 'lib/ractor/cache/store.rb', line 10 def freeze @owner.class::RactorCacheLayer.deep_freeze_callback(@owner) super end |