Class: LS4::MemcacheMDS::HADB
Constant Summary
collapse
- DEFAULT_PORT =
11211
Constants inherited
from BasicHADB
BasicHADB::DEFAULT_WEIGHT
Instance Method Summary
collapse
Methods inherited from BasicHADB
#close, #initialize, #read, #write
Constructor Details
This class inherits a constructor from LS4::BasicHADB
Instance Method Details
#ensure_db(db, addr) ⇒ Object
31
32
33
|
# File 'lib/ls4/service/mds_memcache.rb', line 31
def ensure_db(db, addr)
true
end
|
#error_result?(db, result) ⇒ Boolean
35
36
37
|
# File 'lib/ls4/service/mds_memcache.rb', line 35
def error_result?(db, result)
nil
end
|
#open_db(addr) ⇒ Object
27
28
29
|
# File 'lib/ls4/service/mds_memcache.rb', line 27
def open_db(addr)
MemCache.new(addr.to_s, {:urlencode => false, :compression => :false, :multithread => true, :timeout => 5.0})
end
|