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_evalsha ⇒ Object
By default, EVALSHA is used
128
129
130
|
# File 'lib/sohm.rb', line 128
def self.enable_evalsha
defined?(@enable_evalsha) ? @enable_evalsha : true
end
|
.enable_evalsha=(enabled) ⇒ Object
132
133
134
|
# File 'lib/sohm.rb', line 132
def self.enable_evalsha=(enabled)
@enable_evalsha = enabled
end
|
.mutex ⇒ Object
110
111
112
|
# File 'lib/sohm.rb', line 110
def self.mutex
@mutex
end
|
.mutex=(mutex) ⇒ Object
106
107
108
|
# File 'lib/sohm.rb', line 106
def self.mutex=(mutex)
@mutex = mutex
end
|
.redis ⇒ Object
93
94
95
|
# File 'lib/sohm.rb', line 93
def self.redis
@redis
end
|
.redis=(redis) ⇒ Object
97
98
99
|
# File 'lib/sohm.rb', line 97
def self.redis=(redis)
@redis = redis
end
|
.refresh_indices_inline ⇒ Object
123
124
125
|
# File 'lib/sohm.rb', line 123
def self.refresh_indices_inline
@refresh_indices_inline
end
|
.refresh_indices_inline=(flag) ⇒ Object
119
120
121
|
# File 'lib/sohm.rb', line 119
def self.refresh_indices_inline=(flag)
@refresh_indices_inline = flag
end
|