RUVIDEO
Поделитесь видео 🙏

Spring Boot - Caching Data - EhCache | CacheManager | Part 2 | Simple Programming

📁 Обучение 👁️ 17 📅 02.12.2023

Welcome to Simple Programming

In this video, let us see how to use cache in an API project

there are different cache mechanisms available in the market for you to make use of, like ehcache redis, HazelCast, CouchBase, Gemfire, etc

In this example we will look into cache in two parts, in the first part we will look at the auto-configuration inbuilt cache functionality and in the next part we will see how to use cache manger to configure multiple caches and how to set expiry for them and for this i will use ehCache with java configurations,

before we jump into hands on lets discuss a common topic that many developers are confused about
What is the difference between Cache and a Cookie
Cookie - used to store user details
Cache - used to store information to render the page faster

Cookies often track information like how frequently the user visits, what are the times of visits, what banners have been clicked on, what button clicked, user preferences, items in shopping cart, etc
Example would be youtube, or facebook. They show ads based on the information available in your cookies.
lets say you visited amazon.com and you were looking into some shoes, and after some time you open up a facebook page
you would have noticed that facebook would show ads related to shoes in their page how is that done.
well this is where cookie comes of use

Whereas in case of Cache
For example, when you open websites with large pictures and video’s or a page with huge data that takes some time to render in front of you, it might take some time to load the website.
Here we can use cache to stores the site contents like the images, videos, audio, huge data etc. on your computer. So the next time you load the same website you will find it loading faster

Both cookie and cache can have an expiry time limit, depending upon ur business needs

Caching Replacement Algorithms -
https://en.wikipedia.org/wiki/Cache_replacement_policies#Least-frequently_used_(LFU)

Ehcache Documentation Cache Size -
https://www.ehcache.org/documentation/2.7/configuration/cache-size.html

EhCache Eviction Algorithms Documentation -
https://www.ehcache.org/documentation/2.8/apis/cache-eviction-algorithms.html

GitHub - https://github.com/SimpleProgramming/spring-boot-ehCache-CacheManager

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Spring Boot - Caching Data - EhCache | CacheManager | Part 2 | Simple Programming», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.