Class: Faulty::Storage::Memory::Options

Inherits:
Struct
  • Object
show all
Includes:
ImmutableOptions
Defined in:
lib/faulty/storage/memory.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ImmutableOptions

#dup_with, #finalize, #initialize, #required, #setup

Instance Attribute Details

#max_sample_sizeInteger (readonly)

Returns The number of cache run entries to keep in memory for each circuit. Default 100.

Returns:

  • (Integer)

    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

#defaultsObject



36
37
38
# File 'lib/faulty/storage/memory.rb', line 36

def defaults
  { max_sample_size: 100 }
end