You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
synctv/internal/op/op.go

18 lines
197 B
Go

package op
import (
"github.com/bluele/gcache"
)
func Init(size int) error {
userCache = gcache.New(size).
LRU().
Build()
movieCache = gcache.New(size).
LRU().
Build()
return nil
}