yjp 1 год назад
Родитель
Сommit
d3b01ec20a
1 измененных файлов с 8 добавлено и 0 удалено
  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
+}