mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-17 19:08:36 -06:00
use inmemory cache by default
Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
@@ -111,7 +111,7 @@ func DefaultConfig() *config.Config {
|
||||
SharePrefix: "/Shares",
|
||||
HomeNamespace: "/users/{{.Id.OpaqueId}}",
|
||||
AdditionalInfoAttribute: "{{.Mail}}",
|
||||
StatCacheType: "nats-js-kv",
|
||||
StatCacheType: "memory",
|
||||
StatCacheNodes: []string{"127.0.0.1:9233"},
|
||||
StatCacheDatabase: "cache-stat",
|
||||
StatCacheTTL: 300 * time.Second,
|
||||
|
||||
@@ -47,7 +47,7 @@ func DefaultConfig() *config.Config {
|
||||
ProviderCacheNodes: []string{"127.0.0.1:9233"},
|
||||
ProviderCacheDatabase: "cache-providers",
|
||||
ProviderCacheTTL: 300 * time.Second,
|
||||
CreateHomeCacheStore: "nats-js-kv",
|
||||
CreateHomeCacheStore: "memory",
|
||||
CreateHomeCacheNodes: []string{"127.0.0.1:9233"},
|
||||
CreateHomeCacheDatabase: "cache-createhome",
|
||||
CreateHomeCacheTTL: 300 * time.Second,
|
||||
|
||||
@@ -96,7 +96,7 @@ func DefaultConfig() *config.Config {
|
||||
},
|
||||
},
|
||||
Cache: &config.Cache{
|
||||
Store: "nats-js-kv",
|
||||
Store: "memory",
|
||||
Nodes: []string{"127.0.0.1:9233"},
|
||||
Database: "cache-roles",
|
||||
TTL: time.Hour * 336,
|
||||
|
||||
@@ -43,7 +43,7 @@ func DefaultConfig() *config.Config {
|
||||
AccessTokenVerifyMethod: config.AccessTokenVerificationJWT,
|
||||
SkipUserInfo: false,
|
||||
UserinfoCache: &config.Cache{
|
||||
Store: "nats-js-kv",
|
||||
Store: "memory",
|
||||
Nodes: []string{"127.0.0.1:9233"},
|
||||
Database: "cache-userinfo",
|
||||
TTL: time.Second * 10,
|
||||
|
||||
@@ -57,7 +57,7 @@ func DefaultConfig() *config.Config {
|
||||
StorageAddress: "com.owncloud.api.storage-system",
|
||||
SystemUserIDP: "internal",
|
||||
Cache: &config.Cache{
|
||||
Store: "nats-js-kv",
|
||||
Store: "memory",
|
||||
Nodes: []string{"127.0.0.1:9233"},
|
||||
Database: "settings-cache",
|
||||
FileTable: "settings_files",
|
||||
|
||||
@@ -52,7 +52,7 @@ func DefaultConfig() *config.Config {
|
||||
},
|
||||
},
|
||||
FileMetadataCache: config.Cache{
|
||||
Store: "nats-js-kv",
|
||||
Store: "memory",
|
||||
Nodes: []string{"127.0.0.1:9233"},
|
||||
Database: "cache-filemetadata",
|
||||
TTL: 24 * 60 * time.Second,
|
||||
|
||||
@@ -94,19 +94,19 @@ func DefaultConfig() *config.Config {
|
||||
EnableTLS: false,
|
||||
},
|
||||
StatCache: config.StatCache{
|
||||
Store: "nats-js-kv",
|
||||
Store: "memory",
|
||||
Nodes: []string{"127.0.0.1:9233"},
|
||||
Database: "ocis",
|
||||
TTL: 300 * time.Second,
|
||||
},
|
||||
FilemetadataCache: config.FilemetadataCache{
|
||||
Store: "nats-js-kv",
|
||||
Store: "memory",
|
||||
Nodes: []string{"127.0.0.1:9233"},
|
||||
Database: "cache-filemetadata",
|
||||
TTL: 24 * 60 * time.Second,
|
||||
},
|
||||
IDCache: config.IDCache{
|
||||
Store: "nats-js-kv",
|
||||
Store: "memory",
|
||||
Nodes: []string{"127.0.0.1:9233"},
|
||||
Database: "ids-storage-users",
|
||||
TTL: 24 * 60 * time.Second,
|
||||
|
||||
Reference in New Issue
Block a user