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