#! /usr/bin/ruby # # mcachedb_ruby_update.rb # # Jun/13/2011 # require "cgi" require "json" # load '/var/www/data_base/common/ruby_common/json_manipulate.rb' load '/var/www/data_base/common/ruby_common/cgi_manipulate.rb' load '/var/www/data_base/common/ruby_common/mcache_manipulate.rb' # --------------------------------------------------------------------- print "Content-type: text/html\n\n" # print "*** mcachedb_ruby_update.rb ****
" hhh = parse_parameter() # cache = MemCache.new 'localhost:21201' # hhh.each do |unit| id = unit["id"] population=unit["population"].to_i mcache_update_proc(cache,id,population) end # # print "*** mcachedb_ruby_update.rb *** end ***

"