mongodb基础操作方法增加redis缓存策略
This commit is contained in:
7
consts/redis_key.go
Normal file
7
consts/redis_key.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package consts
|
||||
|
||||
const CleanList = "list:tenantId-%v:collection-%s:*"
|
||||
const CleanCount = "count:tenantId-%v:collection-%s:*"
|
||||
const List = "list:tenantId-%v:collection-%s:filter:%s:options:%s"
|
||||
const Count = "count:tenantId-%v:collection-%s:filter:%s"
|
||||
const One = "one:tenantId-%v:collection-%s:filter:%s:*"
|
||||
Reference in New Issue
Block a user