记录下学习过程 底部平抡
PUT /cache/<key>
content
<value>
GET /cache/<key>
本缓存服务里面通过一个cache包实现缓存功能。 :
package cache
type Cache interface {
Set(string, []byte) error
Get(string) ([]byte, error)
Del(string) error
GetStat() Stat
}