Sha256: cffd746f383266ee34078f70eccf9841e0e326f82e7854dfbb1f34b8c07a0585

Contents?: true

Size: 346 Bytes

Versions: 2

Compression:

Stored size: 346 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

2 entries across 2 versions & 1 rubygems

Version Path
splitclient-rb-3.2.3 lib/cache/repositories/repository.rb
splitclient-rb-3.2.3.pre.rc1 lib/cache/repositories/repository.rb