001 Project structure

This commit is contained in:
Раис Юсупалиев
2026-03-07 13:23:59 +03:00
parent ff319170a2
commit adfa3e26de
33 changed files with 382 additions and 18 deletions
+1
View File
@@ -0,0 +1 @@
"""Repository layer."""
+1
View File
@@ -0,0 +1 @@
"""Cache repositories."""
+17
View File
@@ -0,0 +1,17 @@
"""Redis cache repository skeleton."""
from typing import Any
class PriceCache:
async def get(self, key: str) -> Any | None:
_ = key
raise NotImplementedError("Redis repository implementation is added in task 004.")
async def set(self, key: str, value: Any, ttl: int) -> None:
_ = (key, value, ttl)
raise NotImplementedError("Redis repository implementation is added in task 004.")
async def invalidate(self, key: str) -> None:
_ = key
raise NotImplementedError("Redis repository implementation is added in task 004.")