mirror of
https://github.com/gtsteffaniak/filebrowser.git
synced 2026-11-26 00:19:41 -05:00
Co-authored-by: Kevin B. <kurami32_kbm@proton.me> Co-authored-by: Aditya Raj Singh <aditya@bncw.in>
19 lines
648 B
Go
19 lines
648 B
Go
package utils
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/gtsteffaniak/go-cache/cache"
|
|
)
|
|
|
|
var (
|
|
DiskUsageCache = cache.NewCache[bool](30*time.Second, 24*time.Hour)
|
|
RealPathCache = cache.NewCache[string](48*time.Hour, 72*time.Hour)
|
|
SearchResultsCache = cache.NewCache[string](15*time.Second, 1*time.Hour)
|
|
OnlyOfficeCache = cache.NewCache[string](48*time.Hour, 1*time.Hour)
|
|
JwtCache = cache.NewCache[string](1*time.Hour, 72*time.Hour)
|
|
ViewGrantsCache = cache.NewCache[ViewGrant](15 * time.Minute)
|
|
ViewGrantIndex = cache.NewCache[string](15 * time.Minute)
|
|
ShareAccessGrantsCache = cache.NewCache[ShareAccessGrant](24 * time.Hour)
|
|
)
|