# frozen_string_literal: true module SalesforceStreamer # Store values for a given key in a sorted sequence # Retrieves the highest value given a key class ReplayPersistence class << self def record(key, value) Configuration.instance.logger.debug ['Recording ', key, '=', value].join Configuration.instance.persistence_adapter&.record key, value end def retrieve(key) Configuration.instance.persistence_adapter&.retrieve(key).tap do |v| Configuration.instance.logger.debug ['Retrieved for ', key, ' ', v || 'nil'].join end end end end end