command
Version:
v0.0.0-...-83adff0
Opens a new window with list of versions in this module.
Published: Jul 6, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
缓存代码生成
项目简介
从缓存中获取数据 如果miss则调用回源函数从数据源获取 然后塞入缓存
支持以下功能:
- 单飞限制回源并发 防止打爆数据源
- 空缓存 防止缓存穿透
- 分批获取数据 降低延时
- 默认异步加缓存 可选同步加缓存
- prometheus回源比监控
- 多行注释生成代码
- 支持分页(限单key模板)
- 自定义注释
- 支持忽略参数
使用方式:
代码生成: 使用go generate方式生成 具体参数见文档
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.