go-cache
go-cache copied to clipboard
gob: name not registered for interface: "*main.Person"
err := dataCache.LoadFile("./data") fmt.Println(err)
Caching object data to a file and then loading cached data from a file failed. Is it not supported to load object data from a file?
func init() {
gob.Register(Person{})
}