Method decorator: always run the method, then write its result to the cache.
Unlike @Cacheable (which short-circuits on a hit), @CachePut executes every time and refreshes
the cached value, keeping the cache warm and consistent after a write. If the cache module is not
enabled, the method runs normally (graceful no-op).
Method decorator: always run the method, then write its result to the cache.
Unlike
@Cacheable(which short-circuits on a hit),@CachePutexecutes every time and refreshes the cached value, keeping the cache warm and consistent after a write. If the cache module is not enabled, the method runs normally (graceful no-op).