56 Star 153 Fork 40

青苗 / gmfs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
hello.go 340 Bytes
一键复制 编辑 原始数据 按行查看 历史
= 提交于 2015-08-13 11:29 . golang 基于 gridFs 的分布式文件服务
package main
import (
"fmt"
"gopic/cache/redis"
)
func main() {
var cache = redis.NewCache(60)
var key = "hello_go"
err := cache.Set(key, "hello redis go.")
if err != nil {
fmt.Println(err)
} else {
fmt.Println("cache set success.")
}
value, err := cache.Get(key)
if err != nil {
fmt.Println(err)
}
fmt.Println(value)
}
Go
1
https://gitee.com/jobob/gmfs.git
git@gitee.com:jobob/gmfs.git
jobob
gmfs
gmfs
8375e82f13e4

搜索帮助