Class: Faulty::Storage::Memory::Options
- Inherits:
-
Struct
- Object
- Struct
- Faulty::Storage::Memory::Options
- Includes:
- ImmutableOptions
- Defined in:
- lib/faulty/storage/memory.rb
Overview
Options for Faulty::Storage::Memory
Instance Attribute Summary collapse
-
#max_sample_size ⇒ Integer
readonly
The number of cache run entries to keep in memory for each circuit.
Instance Method Summary collapse
Methods included from ImmutableOptions
#dup_with, #finalize, #initialize, #required, #setup
Instance Attribute Details
#max_sample_size ⇒ Integer (readonly)
Returns The number of cache run entries to keep in memory
for each circuit. Default 100
.
33 34 35 36 37 38 39 |
# File 'lib/faulty/storage/memory.rb', line 33 Options = Struct.new(:max_sample_size) do include ImmutableOptions def defaults { max_sample_size: 100 } end end |
Instance Method Details
#defaults ⇒ Object
36 37 38 |
# File 'lib/faulty/storage/memory.rb', line 36 def defaults { max_sample_size: 100 } end |