Sha256: 4aad07c94562cff2435d672c86617ef4597a4090dc5377c5253320234bcfd5b6

Contents?: true

Size: 695 Bytes

Versions: 68

Compression:

Stored size: 695 Bytes

Contents

# frozen_string_literal: true

module SplitIoClient
  module Cache
    module Senders
      class ImpressionsSenderAdapter
        extend Forwardable
        def_delegators :@sender, :record_uniques_key, :record_impressions_count

        def initialize(config, telemetry_api, impressions_api)
          @sender = case config.telemetry_adapter.class.to_s
                    when 'SplitIoClient::Cache::Adapters::RedisAdapter'
                      Cache::Senders::RedisImpressionsSender.new(config)
                    else
                      Cache::Senders::MemoryImpressionsSender.new(config, telemetry_api, impressions_api)
                    end
        end
      end
    end
  end
end

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
splitclient-rb-7.3.5.pre.rc4-java lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-7.3.5.pre.rc4 lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-7.3.5.pre.rc3-java lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-7.3.5.pre.rc3 lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-7.3.5.pre.rc2-java lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-7.3.5.pre.rc2 lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-7.3.5.pre.rc1-java lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-7.3.5.pre.rc1 lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb