Class: Igniter::Store::RetentionPolicy
- Inherits:
-
Struct
- Object
- Struct
- Igniter::Store::RetentionPolicy
- 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
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#strategy ⇒ Object
Returns the value of attribute strategy.
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration
22 23 24 |
# File 'lib/igniter/store/access_path.rb', line 22 def duration @duration end |
#strategy ⇒ Object
Returns the value of attribute strategy
22 23 24 |
# File 'lib/igniter/store/access_path.rb', line 22 def strategy @strategy end |