Ruby 从 Berkeley DB 数据库保存和获取数据 2014/11/12 14936 require 'bdb' db = BDB::Hash.create('r2.db', nil, BDB::CREATE) db['W'] = 'i' db.close db = BDB::Hash.open('r2.db', nil, 'r') db['W'] db.close