Class: Igniter::Store::RetentionPolicy

Inherits:
Struct
  • Object
show all
Defined in:
lib/igniter/store/access_path.rb

Overview

Retention policy for a store — controls compaction behaviour. strategy: :permanent — never compact (default)

:ephemeral   — keep only latest fact per key; drop all historical
:rolling_window — drop historical facts older than duration seconds,
                  always preserving the latest per key

duration: Float seconds (required for :rolling_window)

Instance Attribute Summary collapse

Instance Attribute Details

#durationObject

Returns the value of attribute duration

Returns:

  • (Object)

    the current value of duration



22
23
24
# File 'lib/igniter/store/access_path.rb', line 22

def duration
  @duration
end

#strategyObject

Returns the value of attribute strategy

Returns:

  • (Object)

    the current value of strategy



22
23
24
# File 'lib/igniter/store/access_path.rb', line 22

def strategy
  @strategy
end