feat(gallery): packing

This commit is contained in:
2026-05-31 15:48:18 +02:00
parent 9282f1f634
commit 8a72b96e66
12 changed files with 126 additions and 19 deletions
+2 -2
View File
@@ -23,11 +23,11 @@ type CachedClient struct {
}
// NewCachedClient creates a new CachedClient.
func NewCachedClient(impl FS, client valkey.Client, refreshtime time.Duration) *CachedClient {
func NewCachedClient(impl FS, client valkey.Client, refreshtime time.Duration, lifetime time.Duration) *CachedClient {
c := &CachedClient{
impl: impl,
cache: client,
ttl: refreshtime * 5,
ttl: lifetime,
}
go func() {