Permalink
Browse files

initialize redis

  • Loading branch information...
sorah committed Oct 22, 2017
1 parent 7b17137 commit bf0e166073c4987f25381f8e81875954f8686534
Showing with 4 additions and 0 deletions.
  1. +4 −0 isubata/webapp/ruby/app.rb
@@ -74,6 +74,10 @@ def user
end
get '/initialize' do
redis.keys('isubata:*').each_slice(100) do |ks|
redis.del(*ks)
end
db.query("DELETE FROM user WHERE id > 1000")
db.query("DELETE FROM image WHERE id > 1001")
db.query("DELETE FROM channel WHERE id > 10")

0 comments on commit bf0e166

Please sign in to comment.