mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 19:44:21 +00:00
e7904057e0
* perf: cache auth request in memory
(cherry picked from commit 25030c69b9
)
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
|
|
}
|