mirror of
https://github.com/simon-ding/polaris.git
synced 2026-02-24 20:50:46 +08:00
14 lines
252 B
Go
14 lines
252 B
Go
package torznab
|
|
|
|
import (
|
|
"polaris/log"
|
|
"polaris/pkg/cache"
|
|
"time"
|
|
)
|
|
|
|
var cc = cache.NewCache[string, []Result](time.Minute * 30)
|
|
|
|
func CleanCache() {
|
|
log.Debugf("clean all torznab caches")
|
|
cc = cache.NewCache[string, []Result](time.Minute * 30)
|
|
} |