jokes-bapak2/api/app/v1/platform/cache/cache.go

13 lines
174 B
Go

package cache
import (
"time"
gocache "github.com/patrickmn/go-cache"
)
func InMemory() *gocache.Cache {
cache := gocache.New(6*time.Hour, 6*time.Hour)
return cache
}