mirror of
https://github.com/zitadel/zitadel
synced 2024-11-22 00:39:36 +00:00
25030c69b9
* perf: cache auth request in memory
19 lines
601 B
Go
19 lines
601 B
Go
package repository
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/zitadel/zitadel/internal/domain"
|
|
)
|
|
|
|
type AuthRequestCache interface {
|
|
Health(ctx context.Context) error
|
|
|
|
GetAuthRequestByID(ctx context.Context, id string) (*domain.AuthRequest, error)
|
|
GetAuthRequestByCode(ctx context.Context, code string) (*domain.AuthRequest, error)
|
|
SaveAuthRequest(ctx context.Context, request *domain.AuthRequest) error
|
|
CacheAuthRequest(ctx context.Context, request *domain.AuthRequest)
|
|
UpdateAuthRequest(ctx context.Context, request *domain.AuthRequest) error
|
|
DeleteAuthRequest(ctx context.Context, id string) error
|
|
}
|