Commit Graph

9 Commits

Author SHA1 Message Date
Anton Lindstrom d42994de5c Refactor parts of the code and add more tests
This is a refactor of parts of the code, some minor things such as adding
punctuation in the end of sentences and making the code a bit easier to read.

More tests has been added in the form of gometalinter which checks the code
health, style and spelling errors. The flaky cleanup test should also be fixed
with this commit.
2016-07-21 20:02:52 +00:00
Marin Bek 22d954a682 NewPGStore should not ignore errors 2016-02-24 13:29:35 +01:00
Anton Lindström 269ca2e7e5 Update tests to use TravisCI
This will remove the current .drone.yml which isn't used anymore, update the
Makefile target and move tests to using `t.Skip` instead of `t.Fatal` if no
database exists during tests. This is so it's possible to develop new tests
that may not require a database.
2015-09-08 14:21:07 +00:00
Josh Holloway ad7b0ee0eb Added MaxLength support port of: https://github.com/boj/redistore/pull/5 2015-07-15 15:08:34 +01:00
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