11件ヒット
[1-11件を表示]
(0.069秒)
検索結果
先頭1件
-
PStore
# commit -> () (18207.0) -
データベースの読み書きを終了します。
...例:
require 'pstore'
db = PStore.new("/tmp/foo")
db.transaction do
p db.roots # => []
ary = db["root"] = [1,2,3,4]
db.commit
ary[0] = [1,1.5] # => ここは実行されない。
end
db.transaction do |pstore|
pstore["root"] # => [[1, 2, 3, 4]
end...