Browse Source

添加接口

yjp 1 năm trước cách đây
mục cha
commit
d3b01ec20a
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  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
+}