Sha256: 918000b9c7ef0147b34ff3691235116bc61982f9b31c646de49fe6d31b2f7f06

Contents?: true

Size: 417 Bytes

Versions: 142

Compression:

Stored size: 417 Bytes

Contents

module SplitIoClient
  module Cache
    class Repository

      def initialize(config)
        @config = config
      end

      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
    end
  end
end

Version data entries

142 entries across 142 versions & 1 rubygems

Version Path
splitclient-rb-7.3.3-java lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-7.3.3 lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-7.3.3.pre.rc18-java lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-7.3.3.pre.rc18 lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-7.3.3.pre.rc17-java lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-7.3.3.pre.rc17 lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-7.3.3.pre.rc16-java lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-7.3.3.pre.rc16 lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-7.3.3.pre.rc15-java lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-7.3.3.pre.rc15 lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-7.3.3.pre.rc14-java lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-7.3.3.pre.rc14 lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-7.3.3.pre.rc13-java lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-7.3.3.pre.rc13 lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-7.3.3.pre.rc12-java lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-7.3.3.pre.rc12 lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-7.3.3.pre.rc11-java lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-7.3.3.pre.rc11 lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-7.3.3.pre.rc10-java lib/splitclient-rb/cache/repositories/repository.rb
splitclient-rb-7.3.3.pre.rc10 lib/splitclient-rb/cache/repositories/repository.rb