讨论数量: 0
G02 Go API 实战
/
这节课我们来开发 cache forget 命令,清空特定 key 的缓存。
app/cmd/cache.go
package cmd
import (
"fmt"
"gohub/pkg/cache"
"gohub/pkg/console"
"github.com/spf13/cobra"
)
var CmdCache = &cobra.Command{
Use
本文章首发在 LearnKu.com 网站上。
粤ICP备18099781号-6
|
粤公网安备 44030502004330号
|
违法和不良信息举报
由 Summer 设计和编码 ❤