maleo-foundation 0.2.31__py3-none-any.whl → 0.2.32__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.
- maleo_foundation/managers/cache/redis.py +7 -2
- maleo_foundation/managers/client/maleo.py +6 -0
- {maleo_foundation-0.2.31.dist-info → maleo_foundation-0.2.32.dist-info}/METADATA +1 -1
- {maleo_foundation-0.2.31.dist-info → maleo_foundation-0.2.32.dist-info}/RECORD +6 -6
- {maleo_foundation-0.2.31.dist-info → maleo_foundation-0.2.32.dist-info}/WHEEL +0 -0
- {maleo_foundation-0.2.31.dist-info → maleo_foundation-0.2.32.dist-info}/top_level.txt +0 -0
@@ -6,8 +6,13 @@ from maleo_foundation.enums import BaseEnums
|
|
6
6
|
class RedisCacheNamespaces(BaseModel):
|
7
7
|
base:str = Field(..., description="Base's redis namespace")
|
8
8
|
|
9
|
-
def create(
|
10
|
-
|
9
|
+
def create(
|
10
|
+
self,
|
11
|
+
type:BaseEnums.CacheType,
|
12
|
+
base_override:BaseTypes.OptionalString = None,
|
13
|
+
*ext:str
|
14
|
+
) -> str:
|
15
|
+
return ":".join([self.base if base_override is None else base_override, type, *ext])
|
11
16
|
|
12
17
|
class RedisCacheConfigurations(BaseModel):
|
13
18
|
ttl:Union[int, float] = Field(BaseEnums.CacheTTL.TTL_5MN, description="Default TTL")
|
@@ -33,12 +33,18 @@ class MaleoClientServiceControllers(ClientServiceControllers):
|
|
33
33
|
class MaleoClientService(ClientService):
|
34
34
|
def __init__(
|
35
35
|
self,
|
36
|
+
key:str,
|
36
37
|
logger:ClientLogger,
|
37
38
|
service_manager:ServiceManager
|
38
39
|
):
|
39
40
|
super().__init__(logger)
|
41
|
+
self._key = key
|
40
42
|
self._service_manager = service_manager
|
41
43
|
|
44
|
+
@property
|
45
|
+
def key(self) -> str:
|
46
|
+
return self._key
|
47
|
+
|
42
48
|
@property
|
43
49
|
def service_manager(self) -> ServiceManager:
|
44
50
|
return self._service_manager
|
@@ -36,10 +36,10 @@ maleo_foundation/managers/middleware.py,sha256=ODIQU1Hpu-Xempjjo_VRbVtxiD5oi74mN
|
|
36
36
|
maleo_foundation/managers/service.py,sha256=i__-ISJ9YQi08nMRl6_j8jOVJB--A-tpGwWPF3FvoqM,18991
|
37
37
|
maleo_foundation/managers/cache/__init__.py,sha256=CeY0oof2bVl_v5WS-FKXNwn2gf3xrEMfUsHK9cHo59s,471
|
38
38
|
maleo_foundation/managers/cache/base.py,sha256=YyPjde4KTsp2IHV6NdFMysa0ev-1GX1rtX-0jQPuIBU,837
|
39
|
-
maleo_foundation/managers/cache/redis.py,sha256=
|
39
|
+
maleo_foundation/managers/cache/redis.py,sha256=Th2DOV2Oa9FtDe1UxjBNxjyFxRv2yiiaB-7NqkpfHQw,1150
|
40
40
|
maleo_foundation/managers/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
41
41
|
maleo_foundation/managers/client/base.py,sha256=AlMsdxIsu2U8BLT2SyEXC7YQXDZjVPZfEmHvV_IUv18,4430
|
42
|
-
maleo_foundation/managers/client/maleo.py,sha256=
|
42
|
+
maleo_foundation/managers/client/maleo.py,sha256=5vDKXObH0qlCaY0-t4FJJdgXYFklnZw3Cyxk3kmAO8k,2653
|
43
43
|
maleo_foundation/managers/client/google/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
44
44
|
maleo_foundation/managers/client/google/base.py,sha256=eIdd6C2BFIu4EyZ1j017VZaJn_nSTPGFftBwQmVAUDA,1366
|
45
45
|
maleo_foundation/managers/client/google/parameter.py,sha256=Lnj7mQgxWQpsQwbmDRK5_bF01M1QpM5PS0eZP2q17yQ,1337
|
@@ -116,7 +116,7 @@ maleo_foundation/utils/loaders/credential/__init__.py,sha256=qopTKvcMVoTFwyRijeg
|
|
116
116
|
maleo_foundation/utils/loaders/credential/google.py,sha256=SKsqPuFnAiCcYLf24CxKnMybhVHpgqnq1gGSlThqjts,994
|
117
117
|
maleo_foundation/utils/loaders/key/__init__.py,sha256=hVygcC2ImHc_aVrSrOmyedR8tMUZokWUKCKOSh5ctbo,106
|
118
118
|
maleo_foundation/utils/loaders/key/rsa.py,sha256=gDhyX6iTFtHiluuhFCozaZ3pOLKU2Y9TlrNMK_GVyGU,3796
|
119
|
-
maleo_foundation-0.2.
|
120
|
-
maleo_foundation-0.2.
|
121
|
-
maleo_foundation-0.2.
|
122
|
-
maleo_foundation-0.2.
|
119
|
+
maleo_foundation-0.2.32.dist-info/METADATA,sha256=9HHq7-RTatAgGiJusDbtqUrGblhClmLUU_4gZx7R0rA,3598
|
120
|
+
maleo_foundation-0.2.32.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
121
|
+
maleo_foundation-0.2.32.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
|
122
|
+
maleo_foundation-0.2.32.dist-info/RECORD,,
|
File without changes
|
File without changes
|