Browse Source

Expire starred lists after 1 day

master
Nemo 3 years ago
parent
commit
6831d9af98
  1. 2
      app.rb

2
app.rb

@ -43,6 +43,8 @@ class MyApp < Sinatra::Base
time = Time.now.to_i
settings.r.set "#{user}.repos", repos
settings.r.set "#{user}.repos.time", time
# Keep the starred repo list for 1 day
settings.r.expire "#{user}.repos", 60*60*24
[repos, time]
end

Loading…
Cancel
Save