lib/tfa/storage.rb in tfa-0.0.11 vs lib/tfa/storage.rb in tfa-0.0.12

- old
+ new

@@ -28,9 +28,15 @@ @storage.transaction do @storage[key] = value end end + def delete(key) + @storage.transaction do + @storage.delete(key) + end + end + private def open_readonly @storage.transaction(true) do yield @storage