1. 首页
  2. 移动开发
  3. 其他
  4. go cache fetcher:带redis的golang提取程序 源码

go cache fetcher:带redis的golang提取程序 源码

上传者: 2021-04-07 02:21:20上传 ZIP文件 13.09KB 热度 28次
去缓存获取器 带有缓存(例如redis)的golang的提取程序。 功能 主要的 SetKey(前缀[] string,useHash bool,elements ... string) Fetch(到期时间。Duration,dst接口{},fetcher接口{})(接口{},错误) 其他 设置(值接口{},到期时间。持续时间)错误 GetString()(字符串,错误) Get(dst interface {})(接口{},错误) Del()错误 Key()字符串 IsCached()布尔 样本 redisClient := redis.NewUniversalClient( &redis.UniversalOptions{Addrs: []string{"localhost:6379"}}, ) client := &cachefetcher.SampleCacheClie
下载地址
用户评论