Sha256: 344393fa0bf83556611c686c5ddcd1bd8d53320057f81c5f258fc4317fbad57a

Contents?: true

Size: 347 Bytes

Versions: 4

Compression:

Stored size: 347 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
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
splitclient-rb-3.1.3 lib/cache/repositories/repository.rb
splitclient-rb-3.1.3.pre.rc3 lib/cache/repositories/repository.rb
splitclient-rb-3.1.3.pre.rc2 lib/cache/repositories/repository.rb
splitclient-rb-3.1.3.pre.rc1 lib/cache/repositories/repository.rb