Ruby 使用 pstore 的简单例子

2015-03-27 0 219
Ruby 使用 pstore 的简单例子
require "pstore"

db = PStore.new("employee.dat")
db.transaction do
    db["params"] = {"name" => "Fred", "age" => 32,
                    "salary" => 48000 }
end


# retrieve
require "pstore"
db = PStore.new("employee.dat")
emp = nil
db.transaction { emp = db["params"] }

遇见资源网 ruby Ruby 使用 pstore 的简单例子 http://www.ox520.com/16288.html

上一篇: 检查SSH
常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务