maleo-foundation 0.3.33__py3-none-any.whl → 0.3.34__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65,7 +65,6 @@ class ServiceManager:
65
65
 
66
66
  self._load_keys()
67
67
  self._initialize_loggers()
68
- self._initialize_cache()
69
68
  self._initialize_cloud_storage()
70
69
  self._initialize_database()
71
70
  self._initialize_foundation()
@@ -171,7 +170,7 @@ class ServiceManager:
171
170
  self._loggers.application.error(f"Redis connection check failed: {e}", exc_info=True)
172
171
  return False
173
172
 
174
- def _initialize_cache(self) -> None:
173
+ async def initialize_cache(self) -> None:
175
174
  self._redis = Redis(
176
175
  host=self.configurations.cache.redis.host,
177
176
  port=self.configurations.cache.redis.port,
@@ -182,12 +181,7 @@ class ServiceManager:
182
181
  )
183
182
  self.check_redis_connection()
184
183
  self._cache = CacheManagers(redis=self._redis)
185
- try:
186
- asyncio.run(self._clear_cache())
187
- except RuntimeError:
188
- loop = asyncio.new_event_loop()
189
- asyncio.set_event_loop(loop)
190
- loop.run_until_complete(self._clear_cache())
184
+ await self._clear_cache()
191
185
 
192
186
  @property
193
187
  def redis(self) -> Redis:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.3.33
3
+ Version: 0.3.34
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -37,7 +37,7 @@ maleo_foundation/managers/configuration.py,sha256=Jcm2A_fS-styLEWZurF7nquitnSYuc
37
37
  maleo_foundation/managers/credential.py,sha256=i1w9bVozf7FYG8NGfLgJYRdLWBQBf35yyzVOEDgdXSA,3108
38
38
  maleo_foundation/managers/db.py,sha256=y5oP3bTXKeXYKqng-E_HZ-3wC0ZPtl5bls0AEEej6zM,6050
39
39
  maleo_foundation/managers/middleware.py,sha256=ecTNloglV67xoC_hqIEMIxhfQwzXRKHLI3ThJdd-lbY,2480
40
- maleo_foundation/managers/service.py,sha256=90OG8qKaDYYpGxM3OllzLABqPguBtGUYI1yFUREAaUA,11783
40
+ maleo_foundation/managers/service.py,sha256=wqfXNgS4McXY5iNXrgc6syVg6_cBo79kD5REFCGnZbE,11560
41
41
  maleo_foundation/managers/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
42
  maleo_foundation/managers/client/base.py,sha256=o4D_y52Zxl-jOtV59o6ZCJOuS6rlUy7e2x3vs7vB5tk,4314
43
43
  maleo_foundation/managers/client/maleo.py,sha256=fhIXKeIjx0VgS8wjX0Cpk05ZHHRiPvmpUQl0890mZxw,2686
@@ -133,7 +133,7 @@ maleo_foundation/utils/loaders/credential/__init__.py,sha256=qopTKvcMVoTFwyRijeg
133
133
  maleo_foundation/utils/loaders/credential/google.py,sha256=ZglnLdW3lHmaKER4mwGe5N5ERus-bdsamfpwGmQYPIo,6344
134
134
  maleo_foundation/utils/loaders/key/__init__.py,sha256=hVygcC2ImHc_aVrSrOmyedR8tMUZokWUKCKOSh5ctbo,106
135
135
  maleo_foundation/utils/loaders/key/rsa.py,sha256=gDhyX6iTFtHiluuhFCozaZ3pOLKU2Y9TlrNMK_GVyGU,3796
136
- maleo_foundation-0.3.33.dist-info/METADATA,sha256=Ft7Hs95SltAHjPD1QakpOlTCAwAL4n9kR8LVI3DCZXc,3740
137
- maleo_foundation-0.3.33.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
138
- maleo_foundation-0.3.33.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
139
- maleo_foundation-0.3.33.dist-info/RECORD,,
136
+ maleo_foundation-0.3.34.dist-info/METADATA,sha256=W-e0OkOdQSG_v6A7SFeF_y2MJqtTrYpmh1XHbprPAc0,3740
137
+ maleo_foundation-0.3.34.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
138
+ maleo_foundation-0.3.34.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
139
+ maleo_foundation-0.3.34.dist-info/RECORD,,