pomerium/internal/grpc/cache/cache.go
Bobby DeSimone 666fd6aa35 authenticate: save oauth2 tokens to cache (#698)
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2020-05-18 17:10:10 -04:00

14 lines
389 B
Go

// Package cache defines a Cacher interfaces that can be implemented by any
// key value store system.
package cache
import (
"context"
)
// Cacher specifies an interface for remote clients connecting to the cache service.
type Cacher interface {
Get(ctx context.Context, key string) (value []byte, err error)
Set(ctx context.Context, key string, value []byte) error
Close() error
}