Skip to content

sql 缓存到redis中,解决并发访问db问题,只用写sql语句即可

Notifications You must be signed in to change notification settings

ltmGo/sql_cache_redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sql 缓存到redis中,解决并发访问db问题 缓存失效后,保证只有一个请求到db查询 每个缓存的key会保存在sync.Map中,key越多消耗的内存越大 如果key对应的channel没有初始化,将是否默认的初始化值

About

sql 缓存到redis中,解决并发访问db问题,只用写sql语句即可

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages