zitadel/internal/auth_request/repository/repository.go
Silvan e7904057e0
perf: cache auth request in memory (#7824)
* perf: cache auth request in memory

(cherry picked from commit 25030c69b9)
2024-04-23 13:49:01 +02:00

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
}