Remove orgCache

This commit is contained in:
Marco Ardizzone
2025-09-15 17:46:53 +02:00
parent 33a0d2ca62
commit fb6235b958

View File

@@ -5,7 +5,6 @@ import (
"strconv"
"time"
"github.com/zitadel/zitadel/backend/v3/storage/cache"
"github.com/zitadel/zitadel/backend/v3/storage/database"
"github.com/zitadel/zitadel/backend/v3/telemetry/logging"
"github.com/zitadel/zitadel/backend/v3/telemetry/tracing"
@@ -80,7 +79,6 @@ var (
orgRepo func(database.QueryExecutor) OrganizationRepository
// instanceCache cache.Cache[instanceCacheIndex, string, *Instance]
orgCache cache.Cache[OrgCacheIndex, string, *Organization]
generateID func() (string, error) = func() (string, error) {
return strconv.FormatUint(rand.Uint64(), 10), nil
@@ -91,10 +89,6 @@ func SetPool(p database.Pool) {
pool = p
}
func SetCache(c cache.Cache[OrgCacheIndex, string, *Organization]) {
orgCache = c
}
// func SetUserCodeAlgorithm(algorithm crypto.EncryptionAlgorithm) {
// userCodeAlgorithm = algorithm
// }