Skip to content

Commit d506c51

Browse files
authored
Merge pull request #120 from seabre/vaccuum-should-be-vacuum
Fixed where vacuum in Litecache doesn't actually run for set or set_multi during SQLite3::FullException.
2 parents 2e24225 + 3e9259b commit d506c51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/litestack/litecache.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def set(key, value, expires_in = nil)
7878
rescue SQLite3::FullException
7979
transaction do
8080
run_stmt(extra_pruner, 0.2)
81-
run_sql("vaccuum")
81+
run_sql("vacuum")
8282
end
8383
retry
8484
end
@@ -95,7 +95,7 @@ def set_multi(keys_and_values, expires_in = nil)
9595
capture(:set, key)
9696
rescue SQLite3::FullException
9797
run_stmt(extra_pruner, 0.2)
98-
run_sql("vaccuum")
98+
run_sql("vacuum")
9999
retry
100100
end
101101
end

0 commit comments

Comments
 (0)