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-8.4.0-java lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-8.4.0 lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-8.4.0.pre.rc1-java lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-8.4.0.pre.rc1 lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-8.4.0.rc.1-java lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-8.4.0.rc.1 lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-8.3.2.pre.rc2-java lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-8.3.2.pre.rc2 lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-8.3.2.pre.rc1-java lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-8.3.2.pre.rc1 lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-8.3.1-java lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-8.3.1 lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-8.3.1.pre.rc1-java lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-8.3.1.pre.rc1 lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-8.3.0-java lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-8.3.0 lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-8.3.0.pre.rc3-java lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-8.3.0.pre.rc3 lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-8.3.0.pre.rc2-java lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb
splitclient-rb-8.3.0.pre.rc2 lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb