use inmemory cache by default

Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
jkoberg
2023-12-13 12:49:54 +01:00
parent ad87ac955a
commit d62cb9d34b
7 changed files with 9 additions and 9 deletions
@@ -111,7 +111,7 @@ func DefaultConfig() *config.Config {
SharePrefix: "/Shares", SharePrefix: "/Shares",
HomeNamespace: "/users/{{.Id.OpaqueId}}", HomeNamespace: "/users/{{.Id.OpaqueId}}",
AdditionalInfoAttribute: "{{.Mail}}", AdditionalInfoAttribute: "{{.Mail}}",
StatCacheType: "nats-js-kv", StatCacheType: "memory",
StatCacheNodes: []string{"127.0.0.1:9233"}, StatCacheNodes: []string{"127.0.0.1:9233"},
StatCacheDatabase: "cache-stat", StatCacheDatabase: "cache-stat",
StatCacheTTL: 300 * time.Second, StatCacheTTL: 300 * time.Second,
@@ -47,7 +47,7 @@ func DefaultConfig() *config.Config {
ProviderCacheNodes: []string{"127.0.0.1:9233"}, ProviderCacheNodes: []string{"127.0.0.1:9233"},
ProviderCacheDatabase: "cache-providers", ProviderCacheDatabase: "cache-providers",
ProviderCacheTTL: 300 * time.Second, ProviderCacheTTL: 300 * time.Second,
CreateHomeCacheStore: "nats-js-kv", CreateHomeCacheStore: "memory",
CreateHomeCacheNodes: []string{"127.0.0.1:9233"}, CreateHomeCacheNodes: []string{"127.0.0.1:9233"},
CreateHomeCacheDatabase: "cache-createhome", CreateHomeCacheDatabase: "cache-createhome",
CreateHomeCacheTTL: 300 * time.Second, CreateHomeCacheTTL: 300 * time.Second,
@@ -96,7 +96,7 @@ func DefaultConfig() *config.Config {
}, },
}, },
Cache: &config.Cache{ Cache: &config.Cache{
Store: "nats-js-kv", Store: "memory",
Nodes: []string{"127.0.0.1:9233"}, Nodes: []string{"127.0.0.1:9233"},
Database: "cache-roles", Database: "cache-roles",
TTL: time.Hour * 336, TTL: time.Hour * 336,
@@ -43,7 +43,7 @@ func DefaultConfig() *config.Config {
AccessTokenVerifyMethod: config.AccessTokenVerificationJWT, AccessTokenVerifyMethod: config.AccessTokenVerificationJWT,
SkipUserInfo: false, SkipUserInfo: false,
UserinfoCache: &config.Cache{ UserinfoCache: &config.Cache{
Store: "nats-js-kv", Store: "memory",
Nodes: []string{"127.0.0.1:9233"}, Nodes: []string{"127.0.0.1:9233"},
Database: "cache-userinfo", Database: "cache-userinfo",
TTL: time.Second * 10, TTL: time.Second * 10,
@@ -57,7 +57,7 @@ func DefaultConfig() *config.Config {
StorageAddress: "com.owncloud.api.storage-system", StorageAddress: "com.owncloud.api.storage-system",
SystemUserIDP: "internal", SystemUserIDP: "internal",
Cache: &config.Cache{ Cache: &config.Cache{
Store: "nats-js-kv", Store: "memory",
Nodes: []string{"127.0.0.1:9233"}, Nodes: []string{"127.0.0.1:9233"},
Database: "settings-cache", Database: "settings-cache",
FileTable: "settings_files", FileTable: "settings_files",
@@ -52,7 +52,7 @@ func DefaultConfig() *config.Config {
}, },
}, },
FileMetadataCache: config.Cache{ FileMetadataCache: config.Cache{
Store: "nats-js-kv", Store: "memory",
Nodes: []string{"127.0.0.1:9233"}, Nodes: []string{"127.0.0.1:9233"},
Database: "cache-filemetadata", Database: "cache-filemetadata",
TTL: 24 * 60 * time.Second, TTL: 24 * 60 * time.Second,
@@ -94,19 +94,19 @@ func DefaultConfig() *config.Config {
EnableTLS: false, EnableTLS: false,
}, },
StatCache: config.StatCache{ StatCache: config.StatCache{
Store: "nats-js-kv", Store: "memory",
Nodes: []string{"127.0.0.1:9233"}, Nodes: []string{"127.0.0.1:9233"},
Database: "ocis", Database: "ocis",
TTL: 300 * time.Second, TTL: 300 * time.Second,
}, },
FilemetadataCache: config.FilemetadataCache{ FilemetadataCache: config.FilemetadataCache{
Store: "nats-js-kv", Store: "memory",
Nodes: []string{"127.0.0.1:9233"}, Nodes: []string{"127.0.0.1:9233"},
Database: "cache-filemetadata", Database: "cache-filemetadata",
TTL: 24 * 60 * time.Second, TTL: 24 * 60 * time.Second,
}, },
IDCache: config.IDCache{ IDCache: config.IDCache{
Store: "nats-js-kv", Store: "memory",
Nodes: []string{"127.0.0.1:9233"}, Nodes: []string{"127.0.0.1:9233"},
Database: "ids-storage-users", Database: "ids-storage-users",
TTL: 24 * 60 * time.Second, TTL: 24 * 60 * time.Second,