Sha256: db2a47fc5e8f95a9ca9dacb8af48ebf687d1373b313bdda74f52ff456fa7c51b

Contents?: true

Size: 527 Bytes

Versions: 7

Compression:

Stored size: 527 Bytes

Contents

# frozen_string_literal: true

# rubocop:disable Style/ClassAndModuleChildren

begin
  require 'fakeredis'
rescue LoadError
  require 'redis'
end

module ActiveOrm
  module Redis
    class Configuration

      attr_accessor :client

      def initialize
        @client = ::Redis.new
      end

    end

    def self.configuration
      @configuration ||= Configuration.new
    end

    def self.configuration=(config)
      @configuration = config
    end

    def self.configure
      yield(configuration)
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
active_orm-5.0.6 lib/active_orm/redis/configuration.rb
active_orm-5.0.5 lib/active_orm/redis/configuration.rb
active_orm-5.0.4 lib/active_orm/redis/configuration.rb
active_orm-5.0.3 lib/active_orm/redis/configuration.rb
active_orm-5.0.2 lib/active_orm/redis/configuration.rb
active_orm-5.0.1 lib/active_orm/redis/configuration.rb
active_orm-5.0.0 lib/active_orm/redis/configuration.rb