implemented ttl cache

This commit is contained in:
2021-08-01 13:00:47 +02:00
parent 5746e79e8f
commit 23c67e0b81
6 changed files with 72 additions and 17 deletions

View File

@@ -1,13 +1,19 @@
package main
import s3browser "git.kapelle.org/niklas/s3browser/internal"
import (
"time"
s3browser "git.kapelle.org/niklas/s3browser/internal"
)
func main() {
s3browser.Start(s3browser.AppConfig{
S3Endoint: "localhost:9000",
S3SSL: false,
S3AccessKey: "testo",
S3SecretKey: "testotesto",
S3Buket: "dev",
S3Endoint: "localhost:9000",
S3SSL: false,
S3AccessKey: "testo",
S3SecretKey: "testotesto",
S3Buket: "dev",
CacheTTL: 20 * time.Second,
CacheCleanup: 1 * time.Minute,
})
}