mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-31 01:47:33 +02:00
pkg/storage/redis: move last version to redis (#1134)
So we can support multiple databroker servers, we can't do it if we store last version inside Server struct.
This commit is contained in:
parent
aedfbc4c71
commit
a8fd23a2be
2 changed files with 18 additions and 6 deletions
|
@ -38,6 +38,8 @@ func TestDB(t *testing.T) {
|
|||
defer c.Close()
|
||||
|
||||
cleanup(c, db, t)
|
||||
_, err = c.Do("DEL", db.lastVersionKey)
|
||||
require.NoError(t, err)
|
||||
|
||||
t.Run("get missing record", func(t *testing.T) {
|
||||
record, err := db.Get(ctx, id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue