Slide 105
Slide 105 text
NSVCZNTE
redis = Msd::Store::Redis.new
mysql = Msd::Store::MySQL.new(
'SELECT host FROM table WHERE domain = ?',
'localhost', 'root', 'password', 'DBName'
)
msd = Msd::Client.new
msd.configure do |c|
c.stores = [redis, mysql]
end
msd.fetch('site-a.com')
# => "Web Server1"
ଓ
σʔλετΞΛొ
σʔλΛΩϟογϡͭͭ͠GFUDI͢Δ