[edit] è¦ç´ Rubyã®ãªãã¸ã§ã¯ããå¤é¨ãã¡ã¤ã«ã«æ ¼ç´ããããã®ã¯ã©ã¹ã§ããå é¨ã§ Marshal ã使ã£ã¦ãã¾ãã 使ãæ¹ ãã¼ã¿ãã¼ã¹ã«ã¢ã¯ã»ã¹ããããã«ã¯ã transaction ã®ãããã¯å ã§ããå¿ è¦ãããã¾ããã¤ã³ã¿ã¼ãã§ã¼ã¹ã¯ Hash ã«ä¼¼ã¦ãã¾ãã require 'pstore' db = PStore.new("/tmp/foo") db.transaction do p db.roots # => [] ary = db["root"] = [1,2,3,4] ary[0] = [1,1.5] end db.transaction do p db["root"] # => [[1, 1.5], 2, 3, 4] end ç®æ¬¡ ç¹ç°ã¡ã½ãã new ã¤ã³ã¹ã¿ã³ã¹ã¡ã½ãã [] []= abort commit delete fetch path root? r
{{#tags}}- {{label}}
{{/tags}}