feat: Implement menu item and category management with Redis caching for restaurant data.
This commit is contained in:
Vendored
+7
@@ -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}`,
|
||||
};
|
||||
Reference in New Issue
Block a user