implemented ttl cache
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user