feat: Implement menu item and category management with Redis caching for restaurant data.

This commit is contained in:
2025-12-11 09:54:52 +03:00
parent 5dc5cd87a8
commit 1bc01337fc
19 changed files with 467 additions and 29 deletions
+7
View File
@@ -0,0 +1,7 @@
export const keys = {
restaurantBySlug: (slug: string) => `restaurant:slug:${slug}`,
restaurantCategories: (restaurantId: string) => `restaurant:${restaurantId}:categories`,
restaurantItems: (restaurantId: string) => `restaurant:${restaurantId}:items`,
category: (categoryId: string) => `category:${categoryId}`,
item: (itemId: string) => `item:${itemId}`,
};