Assume that you have a table where Subscriptions are stored, example given you have bought a new Spotify subscription, for 3, 6 or 12 months. In this table , the data that are kept are : the creation date (created_at) last update timestamp (last_updated) start_date of Subscription start_date of Subscription end_date of Subscription duration_in_months (3,6 …
Monthly Archives: May 2022
Implement a Redis Cache Service in Java
What is Redis: Redis is an open source , in-memory data structure store used as a database, cache, message broker, and streaming engine.More info in https://redis.io/docs/about/ Jedis is a client library in Java for Redis Install RedisCheck the instructions in https://redis.io/docs/getting-started/installation/ Java implementation Add the Maven dependency in pom.xml Create a new class JedisCacheService Unit Test: Redis CLI You can verify …