Method: AsyncStorage::Allocator#refresh
- Defined in:
- lib/async_storage/allocator.rb
#refresh ⇒ Object, NilClass
Invalidate object with the given key and update content according to the strategy
103 104 105 106 107 |
# File 'lib/async_storage/allocator.rb', line 103 def refresh breaker.run(fallback: -> { fetch! }) do get.tap { invalidate } end end |