我想使用Go在GAE的memcache中存储一个对象.gae文档仅显示如何在此处存储[]字节:https://developers.google.com/appengine/docs/go/memcache/overview
当然,有一般方法将对象序列化为[]字节,通过它我可以完成任务.但是通过阅读memcache引用,我发现memcache中有一个"对象"Item:
// Object is the Item's value for use with a Codec.
Object interface{}
Run Code Online (Sandbox Code Playgroud)
这似乎是一个在memcache中存储对象的内置机制.但是,gae文档没有提供示例代码.
有人能告诉我一个例子吗?提前致谢