[ update ]: Change Redis Keyname
Browse files- restful/services.py +2 -2
restful/services.py
CHANGED
@@ -11,7 +11,7 @@ class ForecastingService:
|
|
11 |
|
12 |
async def forecasting(self, payload: ForecastingServiceSchema, caching: _ProtocolMeta) -> dict:
|
13 |
caching_data = caching.get(
|
14 |
-
f'{payload.algorithm}_{payload.currency}_{payload.days}')
|
15 |
|
16 |
actuals, predictions = await self.__FORECAST_UTILS.forecasting_utils(
|
17 |
days = payload.days,
|
@@ -27,7 +27,7 @@ class ForecastingService:
|
|
27 |
|
28 |
else:
|
29 |
caching.set(
|
30 |
-
f'{payload.algorithm}_{payload.currency}_{payload.days}',
|
31 |
json.dumps(predictions)
|
32 |
)
|
33 |
|
|
|
11 |
|
12 |
async def forecasting(self, payload: ForecastingServiceSchema, caching: _ProtocolMeta) -> dict:
|
13 |
caching_data = caching.get(
|
14 |
+
f'CRYPTO_{payload.algorithm}_{payload.currency}_{payload.days}')
|
15 |
|
16 |
actuals, predictions = await self.__FORECAST_UTILS.forecasting_utils(
|
17 |
days = payload.days,
|
|
|
27 |
|
28 |
else:
|
29 |
caching.set(
|
30 |
+
f'CRYPTO_{payload.algorithm}_{payload.currency}_{payload.days}',
|
31 |
json.dumps(predictions)
|
32 |
)
|
33 |
|