blob: 497151e682842d0450e68a38ceeaf8f39ea04268 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package types
import (
"sync"
"time"
"github.com/gofiber/fiber/v2"
)
type FolderCacheEntry struct {
Folders []fiber.Map
CachedAt time.Time
ExpiresAt time.Time
}
type FolderCache struct {
Mu sync.RWMutex
Data map[string]*FolderCacheEntry
TTL time.Duration
}
|