cache

command
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

README

tools/cache

缓存代码生成

项目简介

从缓存中获取数据 如果miss则调用回源函数从数据源获取 然后塞入缓存

支持以下功能:

  • 单飞限制回源并发 防止打爆数据源
  • 空缓存 防止缓存穿透
  • 分批获取数据 降低延时
  • 默认异步加缓存 可选同步加缓存
  • prometheus回源比监控
  • 多行注释生成代码
  • 支持分页(限单key模板)
  • 自定义注释
  • 支持忽略参数

使用方式:

代码生成: 使用go generate方式生成 具体参数见文档

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL