Sha256: 08f1850793e2d8923f8f055c91029a3caeddb0b73af510b37a48b7a03dfb10eb

Contents?: true

Size: 495 Bytes

Versions: 34

Compression:

Stored size: 495 Bytes

Contents

module SplitIoClient
  module Cache
    class Repository
      def set_string(key, str)
        @adapter.set_string(namespace_key(key), str)
      end

      def string(key)
        @adapter.string(namespace_key(key))
      end

      protected

      def namespace_key(key = '')
        "#{@config.redis_namespace}#{key}"
      end

      def impressions_metrics_key(key)
        namespace_key("/#{@config.language}-#{@config.version}/#{@config.machine_ip}/#{key}")
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
splitclient-rb-5.1.0-java lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-5.1.0 lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-5.1.0.pre.rc1-java lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-5.1.0.pre.rc1 lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-5.0.3-java lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-5.0.3 lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-5.0.3.pre.rc1-java lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-5.0.3.pre.rc1 lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-5.0.2-java lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-5.0.2 lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-5.0.2.pre.rc1-java lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-5.0.2.pre.rc1 lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-5.0.1-java lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-5.0.1 lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-5.0.1.pre.rc1-java lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-5.0.1.pre.rc1 lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-5.0.0-java lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-5.0.0 lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-5.0.0.pre.rc1-java lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-5.0.0.pre.rc1 lib/splitclient-rb/cache/repositories/repository.rb