in GitHub code, I think u have missed to write the logic for delete and find functionalities in UserRepositries Class and also u didn't explain about MySQL connection, the rest all explained pretty good
Thanks for the great video. I have two doubts. 1) I noticed that the model User (class User) implements Serializable. Could you please clarify, why this is required? 2) Is jedis component to manipulate redis cache data not required to implement Redis cache?
1).By default, RedisCache and RedisTemplate are configured to use Java native serialization. Hence to make the user model to be able to serialized or deserialized , the marker interface serializable is used here. 2).In this Example the default configurations of Spring Data Redis is used , but for instance , if you want to run your redis server onto some different host and port , or want to customize the default behavior of spring data redis, then in that case you might need to default configuration of Jedis Component.
Yes there is no configuration at code level as redis server used locally runs on default port of redis. The dependency spring-data-redis takes care of establishing the connection with the locally running redis.
Hi Gulam, The link to source code is already present in the description.Kindly expand the description box 🙂. BDW here it is - github.com/stackfortech/redis-cache-spring
Your videos are amazing. Precise, fast, and to the point.
Thank you, that was amazing and straight to the point...
Your video are so incredible, Thanks a lot of!!!
Clear demonstration with every important steps, explanation & background. 👍
Glad it was helpful!
Crystal clear thanks man 👍
Perfect and to the point!
That's very kind of you
Very good tutorial. Thanks.
Is it possible to install Redis software in Windows 10? Please let me know. Thank you for your nice lecture
Consider the scenario where DB is updated directly, how to tell redis to invalidate the current cache and reload the values from DB.
We need to use Maxwell in that case.
@@saifulhasan2532 thanks for the reply. I'll try to search more on this Maxwell thing.
in GitHub code, I think u have missed to write the logic for delete and find functionalities in UserRepositries Class and also u didn't explain about MySQL connection, the rest all explained pretty good
Maybe I missed it but where did you tell your spring app to connect to redis??
Why didn't you write annotations for the getAll?
Man!! Thank you !
You're welcome!
Thanks for the great video.
I have two doubts.
1) I noticed that the model User (class User) implements Serializable.
Could you please clarify, why this is required?
2) Is jedis component to manipulate redis cache data not required to implement Redis cache?
1).By default, RedisCache and RedisTemplate are configured to use Java native serialization. Hence to make the user model to be able to serialized or deserialized , the marker interface serializable is used here.
2).In this Example the default configurations of Spring Data Redis is used , but for instance , if you want to run your redis server onto some different host and port , or want to customize the default behavior of spring data redis, then in that case you might need to default configuration of Jedis Component.
@@CachedInsights thnx for the response.
@@physrivdos I think data store in Redis as a stream form that's why we have to implement Serializable so that model will convert into the stream
Hie.. you didn't write any configuration file... i mean redisConnectionFactort code
Bro, Do for getAll api? Cache not working
awesome video
Glad you enjoyed it
How can I find by username, for example?
how we can store and retrieve java collections and Date object in redis cache? Can anyone help me on this?
I couldn't see the Redis connection configuration in the spring-boot project
Yes there is no configuration at code level as redis server used locally runs on default port of redis. The dependency spring-data-redis takes care of establishing the connection with the locally running redis.
Without the connection code is it able to use redis..??
Spring boot auto configures for you as dependency is present in the classpath due to declaration in pom.xml
can you pls add the github link
Hi Gulam,
The link to source code is already present in the description.Kindly expand the description box 🙂.
BDW here it is - github.com/stackfortech/redis-cache-spring