Class: Roma::Storage::TCMemStorage

Inherits:
TCStorage show all
Includes:
TokyoCabinet
Defined in:
lib/roma/storage/tc_storage.rb

Constant Summary

Constants inherited from BasicStorage

BasicStorage::PACK_HEADER_TEMPLATE, BasicStorage::PACK_TEMPLATE

Instance Attribute Summary

Attributes inherited from BasicStorage

#cleanup_regexp, #dbs, #divnum, #do_each_vn_dump, #each_clean_up_sleep, #each_vn_dump_sleep, #each_vn_dump_sleep_count, #error_message, #ext_name, #hdb, #hdiv, #logic_clock_expire, #option, #st_class, #storage_path, #vn_list

Instance Method Summary collapse

Methods inherited from TCStorage

#closedb, #get_stat_org, #initialize, #opendb

Methods inherited from BasicStorage

#add, #append, #cache_file_name, #cas, #close_log, #closedb, #db_get, #db_put, #decr, #delete, #dump, #each_cache_by_keys, #each_cache_dump_pack, #each_clean_up, #each_hdb_dump, #each_vn_dump, #flush_db, #get, #get_context, #get_keys_in_cache, #get_logfile_list, #get_raw, #get_raw2, #incr, #initialize, #load, #load_stream_dump, #load_stream_dump_for_cachecleaning, #open_log, #opendb, #out, #out_cache, #prepend, #rdelete, #replace, #rset, #set, #set_db_stat, #set_expt, #stop_clean_up, #true_length, #write_log

Constructor Details

This class inherits a constructor from Roma::Storage::TCStorage

Instance Method Details

#get_statObject



166
167
168
169
170
171
172
173
# File 'lib/roma/storage/tc_storage.rb', line 166

def get_stat
  ret = get_stat_org
  @hdb.each_with_index{|hdb,idx|
    ret["storage[#{idx}].rnum"] = hdb.rnum
    ret["storage[#{idx}].size"] = hdb.size
  }
  ret
end