Commit Graph

5 Commits

Author SHA1 Message Date
Matt Silverlock 1ad21d029c feature: expired sessions can be deleted via a background goroutine.
- Call defer store.StopCleanup(store.Cleanup(time.Minute * 5)) after store creation.
- Does not break the existing API (optional, but recommended)
- Based on https://github.com/yosssi/boltstore/reaper
- Deletes expired sessions (where expireson > now())
- Includes tests
2015-07-11 11:56:04 +08:00
Jacob Walker cbe9f2afe4 Make a copy of Options for each new session 2015-05-06 11:10:11 -05:00
Anton Lindström 3ead5a545f format code 2014-06-09 16:54:10 +00:00
Anton Lindström 568eb0c1c5 fail test if db is nil 2014-06-09 16:53:59 +00:00
Hans Lawrenz 53ec9b3310 Fix save function to actually update database record. Add a test. 2014-05-19 10:50:30 -04:00