Permalink
Browse files

2s

  • Loading branch information...
sorah committed Oct 31, 2015
1 parent d4edace commit e0b4dcd3d390bf641a4a70edbe95593dfaafcd77
Showing with 1 addition and 1 deletion.
  1. +1 −1 5f/webapp/ruby/app.rb
View
@@ -102,7 +102,7 @@ def fetch_with_cache(conf, redis)
else
res = fetch(conf)
if @expirable
redis.psetex("api/cache/#{hash}", 1500, res.to_msgpack)
redis.psetex("api/cache/#{hash}", 2000, res.to_msgpack)
else
redis.set("api/cache/#{hash}", res.to_msgpack)
end

0 comments on commit e0b4dcd

Please sign in to comment.