diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2018-12-28 06:00:58 -0500 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2018-12-28 06:00:58 -0500 |
| commit | b3ae0e1eeb517c06c5817b9921f76cbaaa62c036 (patch) | |
| tree | 593e02fab72152d29ca4274ac62a8f60fb7bd1b6 /store.go | |
| parent | 2c3ab103355b616815756f1f3ba74b147a02a857 (diff) | |
| download | id-b3ae0e1eeb517c06c5817b9921f76cbaaa62c036.tar.gz | |
Add fetched session to cache
Diffstat (limited to 'store.go')
| -rw-r--r-- | store.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -46,6 +46,7 @@ func (store *PgStore) GetSession(id string) (*Session, bool) { if err := row.Scan(s.Id, s.UserId); err != nil { return nil, false } + store.sessionCache[s.Id] = s return s, true } |
