Browse Source

添加接口

yjp 1 year ago
parent
commit
d3b01ec20a
1 changed files with 8 additions and 0 deletions
  1. 8 0
      framework/core/infrastructure/infrastructure.go

+ 8 - 0
framework/core/infrastructure/infrastructure.go

@@ -117,3 +117,11 @@ func DestroyInfrastructure(i *Infrastructure) {
 func (i Infrastructure) DBExecutor() database.Executor {
 	return i.dbExecutor
 }
+
+func (i Infrastructure) LocalCache() cache.Cache {
+	return i.localCache
+}
+
+func (i Infrastructure) RedisCache() cache.Cache {
+	return i.redisCache
+}