mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-26 14:36:37 +00:00
Remove orgCache
This commit is contained in:
@@ -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
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user