Cleanup and improve the caching config (#6148)

* Cleanup and improve the caching config

* bump reva

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* disable stat cache

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* Bump reva

* Linter fixes

---------

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Andre Duffeck
2023-04-27 12:35:30 +02:00
committed by GitHub
parent d563b63d8f
commit 129489203b
29 changed files with 277 additions and 253 deletions

View File

@@ -2,6 +2,7 @@ package defaults
import (
"path/filepath"
"time"
"github.com/owncloud/ocis/v2/ocis-pkg/config/defaults"
"github.com/owncloud/ocis/v2/ocis-pkg/shared"
@@ -50,9 +51,10 @@ func DefaultConfig() *config.Config {
LockCycleDurationFactor: 30,
},
},
Cache: config.Cache{
FileMetadataCache: config.Cache{
Store: "memory",
Database: "ocis",
TTL: 24 * 60 * time.Second,
},
}
}