markcdev101 / spring-flavour-vault-backend

Repository for backend code for Flavour Vault
0 stars 0 forks source link

Ticket 08: Implement Caching for Recipe Retrieval #17

Closed markcdev101 closed 1 month ago

markcdev101 commented 1 month ago

Description: Use Redis to cache recipe retrieval. Store recipes in cache for faster access on subsequent requests.

Spring Boot Concepts:

Guide:

Acceptance Criteria:

markcdev101 commented 1 month ago

for deleting entries in the cache

@CacheEvict(value = "recipes", key = "#id")

For adding entries in the cache

@Cacheable(value = "recipes", key = "#id")

markcdev101 commented 1 month ago

Skipping the last requirement of unit testing the cache, as it needs Redis embedded. Will look for a workaround in the future.,