# Packages
Package cachemocks is a generated GoMock package.
Package redismocks is a generated GoMock package.
# Functions
No description provided by the author
NewCodeCacheGoBestPractice Go 的最佳实践是返回具体类型.
NewUserCache A 用到了 B,B 一定是接口 => 这个是保证面向接口 A 用到了 B,B 一定是 A 的字段 => 规避包变量、包方法,都非常缺乏扩展性 A 用到了 B,A 绝对不初始化 B,而是外面注入 => 保持依赖注入(DI, Dependency Injection)和依赖反转(IOC) expiration 1s, 1m.
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
LocalCodeCache 假如说你要切换这个,你是不是得把 lua 脚本的逻辑,在这里再写一遍?.
No description provided by the author
No description provided by the author