mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-31 18:07:17 +02:00
databroker server backend config (#1127)
* config,docs: add databroker storage backend configuration * cache: allow configuring which backend storage to use Currently supported types are "memory", "redis".
This commit is contained in:
parent
c9182f757e
commit
1640151bc1
9 changed files with 99 additions and 6 deletions
|
@ -17,6 +17,9 @@ import (
|
|||
"github.com/pomerium/pomerium/pkg/storage"
|
||||
)
|
||||
|
||||
// Name is the storage type name for inmemory backend.
|
||||
const Name = "memory"
|
||||
|
||||
var _ storage.Backend = (*DB)(nil)
|
||||
|
||||
type byIDRecord struct {
|
||||
|
|
|
@ -18,6 +18,9 @@ import (
|
|||
"github.com/pomerium/pomerium/pkg/storage"
|
||||
)
|
||||
|
||||
// Name is the storage type name for redis backend.
|
||||
const Name = "redis"
|
||||
|
||||
var _ storage.Backend = (*DB)(nil)
|
||||
|
||||
// DB wraps redis conn to interact with redis server.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue