Class: Redify::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/redify/settings.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.always_redify_associationsObject

Returns the value of attribute always_redify_associations.



7
8
9
# File 'lib/redify/settings.rb', line 7

def always_redify_associations
  @always_redify_associations
end

.default_handlerObject

Returns the value of attribute default_handler.



33
34
35
# File 'lib/redify/settings.rb', line 33

def default_handler
  @default_handler
end

.namespaceObject

Returns the value of attribute namespace.



8
9
10
# File 'lib/redify/settings.rb', line 8

def namespace
  @namespace
end

.raise_redis_errorsObject

Returns the value of attribute raise_redis_errors.



7
8
9
# File 'lib/redify/settings.rb', line 7

def raise_redis_errors
  @raise_redis_errors
end

Class Method Details

.set_default_optionsObject



18
19
20
21
22
23
24
25
26
27
# File 'lib/redify/settings.rb', line 18

def set_default_options
  # silently falls back to ActiveRecord when Redis is unavailable
  raise_redis_errors = false

  # only redify associations when specified
  always_redify_associations = false

  # default namespace
  namespace = "Redify"
end