Module: Sohm

Defined in:
lib/sohm.rb,
lib/sohm/json.rb,
lib/sohm/auto_id.rb,
lib/sohm/index_all.rb

Defined Under Namespace

Modules: AutoId, Collection, IndexAll, Utils Classes: BasicSet, CasViolation, Error, IndexNotFound, List, MissingID, Model, MutableSet, NotSupported, Set

Constant Summary collapse

LUA_SAVE =
File.read(File.expand_path("../sohm/lua/save.lua",   __FILE__))
LUA_SAVE_DIGEST =
Digest::SHA1.hexdigest LUA_SAVE

Class Method Summary collapse

Class Method Details

.enable_evalshaObject

By default, EVALSHA is used



125
126
127
# File 'lib/sohm.rb', line 125

def self.enable_evalsha
  defined?(@enable_evalsha) ? @enable_evalsha : true
end

.enable_evalsha=(enabled) ⇒ Object



129
130
131
# File 'lib/sohm.rb', line 129

def self.enable_evalsha=(enabled)
  @enable_evalsha = enabled
end

.mutexObject



107
108
109
# File 'lib/sohm.rb', line 107

def self.mutex
  @mutex
end

.mutex=(mutex) ⇒ Object



103
104
105
# File 'lib/sohm.rb', line 103

def self.mutex=(mutex)
  @mutex = mutex
end

.redisObject



90
91
92
# File 'lib/sohm.rb', line 90

def self.redis
  @redis
end

.redis=(redis) ⇒ Object



94
95
96
# File 'lib/sohm.rb', line 94

def self.redis=(redis)
  @redis = redis
end

.refresh_indices_inlineObject



120
121
122
# File 'lib/sohm.rb', line 120

def self.refresh_indices_inline
  @refresh_indices_inline
end

.refresh_indices_inline=(flag) ⇒ Object



116
117
118
# File 'lib/sohm.rb', line 116

def self.refresh_indices_inline=(flag)
  @refresh_indices_inline = flag
end