Skip to content

Commit

Permalink
Merge pull request #120 from seabre/vaccuum-should-be-vacuum
Browse files Browse the repository at this point in the history
Fixed where vacuum in Litecache doesn't actually run for set or set_multi during SQLite3::FullException.
  • Loading branch information
oldmoe authored Jun 22, 2024
2 parents 2e24225 + 3e9259b commit d506c51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/litestack/litecache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def set(key, value, expires_in = nil)
rescue SQLite3::FullException
transaction do
run_stmt(extra_pruner, 0.2)
run_sql("vaccuum")
run_sql("vacuum")
end
retry
end
Expand All @@ -95,7 +95,7 @@ def set_multi(keys_and_values, expires_in = nil)
capture(:set, key)
rescue SQLite3::FullException
run_stmt(extra_pruner, 0.2)
run_sql("vaccuum")
run_sql("vacuum")
retry
end
end
Expand Down

0 comments on commit d506c51

Please sign in to comment.