//
pkg.gl
Category
github.com/go-jar/sqlredis
module
package
1.1.0
Repository:
https://github.com/go-jar/sqlredis.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
6
Dependents
0
Files
184 SLOC
#
README
思路
插入。先插入到 mysql,然后插入到 redis。
删除。先从 mysql 中删除,然后从 redis 中删除。
更新。先更新 mysql,然后从 redis 中删除。
查询。先从 redis 中读取,如果出错,则从 mysql 中读取。如果没有出错,但 redis 中不存在,则从 mysql 中读取,如果 mysql 中存在,则 redis 中保存一份。
#
Structs
SqlRedis
No description provided by the author