Class: Optify::CacheOptions
- Inherits:
-
Object
- Object
- Optify::CacheOptions
- Defined in:
- lib/optify_ruby/implementation.rb,
sig/optify.rbs
Overview
Options for caching.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(on_cache_event: nil) ⇒ CacheOptions
constructor
A new instance of CacheOptions.
Constructor Details
#initialize ⇒ ^(::Array[untyped] key, untyped value, bool is_cache_hit) - #initialize(on_cache_event:) ⇒ void
Returns a new instance of CacheOptions.
21 22 23 |
# File 'lib/optify_ruby/implementation.rb', line 21 def initialize(on_cache_event: nil) @on_cache_event = on_cache_event end |
Instance Attribute Details
#on_cache_event ⇒ Object
16 17 18 |
# File 'lib/optify_ruby/implementation.rb', line 16 def on_cache_event @on_cache_event end |