diff --git a/pom.xml b/pom.xml
index af21ca3..521ef2a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -34,6 +34,10 @@
org.springframework.boot
spring-boot-starter-webmvc
+
+ org.springframework.boot
+ spring-boot-starter-cache
+
com.github.ben-manes.caffeine
diff --git a/src/main/java/auth_service/configuration/CacheConfig.java b/src/main/java/auth_service/configuration/CacheConfig.java
new file mode 100644
index 0000000..eb43847
--- /dev/null
+++ b/src/main/java/auth_service/configuration/CacheConfig.java
@@ -0,0 +1,37 @@
+package auth_service.configuration;
+
+import com.github.benmanes.caffeine.cache.Caffeine;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.cache.CacheManager;
+import org.springframework.cache.annotation.EnableCaching;
+import org.springframework.cache.caffeine.CaffeineCacheManager;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Profile;
+
+import java.util.concurrent.TimeUnit;
+
+/**
+ * Global configuration to enable Spring Boot caching (backed by Caffeine).
+ */
+@Configuration
+@EnableCaching
+@Profile("!dev")
+@Slf4j
+public class CacheConfig {
+ @Bean
+ public CacheManager cacheManager() {
+ log.info("########### Productive cache active ###########");
+ CaffeineCacheManager cacheManager = new CaffeineCacheManager("usersByEmail");
+ cacheManager.setCaffeine(caffeineCacheBuilder());
+ return cacheManager;
+ }
+
+ Caffeine