Sha256: 567ff4057df9ee7c5912f7c0f7abd49632a577defffd3f3e5fe2000a37866e18

Contents?: true

Size: 369 Bytes

Versions: 3

Compression:

Stored size: 369 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}/#{@config.machine_ip}/#{key}"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
splitclient-rb-3.2.2 lib/cache/repositories/repository.rb
splitclient-rb-3.2.1 lib/cache/repositories/repository.rb
splitclient-rb-3.2.0 lib/cache/repositories/repository.rb