What is Redis | Spring Data Redis as Cache | Coded Tribe

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ก.ค. 2024
  • Redis is an open source BSD license data structure store and using redis as cache is one of the most important usecase of it.In this video we will configure redis as cache using Spring data redis in spring boot application.
    Recommended Books :
    Data Structure and Algorithm : amzn.to/2PEwqUr
    Cracking the coding interview : amzn.to/3tJ0kFt
    Building Microservices : amzn.to/38ZrksB
    Github link : github.com/coded-tribe/redis-...
    Twitter architecture : www.infoq.com/presentations/T...
    #Redis #CodedTribe #spring #cache
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 37

  • @kushsharma6653
    @kushsharma6653 3 ปีที่แล้ว +1

    Your videos are amazing. Precise, fast, and to the point.

  • @deltamakuba
    @deltamakuba 2 ปีที่แล้ว +2

    Thank you, that was amazing and straight to the point...

  • @narendrakumariitb
    @narendrakumariitb 3 ปีที่แล้ว +1

    Crystal clear thanks man 👍

  • @souvikadhikary8990
    @souvikadhikary8990 3 ปีที่แล้ว

    Clear demonstration with every important steps, explanation & background. 👍

  • @karthik-pillai
    @karthik-pillai 2 ปีที่แล้ว +1

    Perfect and to the point!

  • @alinazim2847
    @alinazim2847 ปีที่แล้ว

    Your video are so incredible, Thanks a lot of!!!

  • @chowdhuryfarsadaurangzeb5080
    @chowdhuryfarsadaurangzeb5080 3 ปีที่แล้ว +1

    Very good tutorial. Thanks.

  • @tzhynt
    @tzhynt ปีที่แล้ว

    That's very kind of you

  • @rakshitingale4083
    @rakshitingale4083 2 ปีที่แล้ว

    Man!! Thank you !

  • @jamesh4129
    @jamesh4129 3 ปีที่แล้ว +1

    Maybe I missed it but where did you tell your spring app to connect to redis??

  • @alokmaheshwari8755
    @alokmaheshwari8755 2 ปีที่แล้ว

    awesome video

  • @satishryc
    @satishryc 3 ปีที่แล้ว

    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

  • @samssunny16
    @samssunny16 2 ปีที่แล้ว

    how we can store and retrieve java collections and Date object in redis cache? Can anyone help me on this?

  • @Entertainment_Zone2522
    @Entertainment_Zone2522 2 ปีที่แล้ว

    Bro, Do for getAll api? Cache not working

  • @sergioddh
    @sergioddh 2 ปีที่แล้ว

    How can I find by username, for example?

  • @SachinKumar-rz6cw
    @SachinKumar-rz6cw 3 ปีที่แล้ว +2

    Consider the scenario where DB is updated directly, how to tell redis to invalidate the current cache and reload the values from DB.

    • @saifulhasan2532
      @saifulhasan2532 3 ปีที่แล้ว

      We need to use Maxwell in that case.

    • @SachinKumar-rz6cw
      @SachinKumar-rz6cw 3 ปีที่แล้ว

      @@saifulhasan2532 thanks for the reply. I'll try to search more on this Maxwell thing.

  • @physrivdos
    @physrivdos 3 ปีที่แล้ว

    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?

    • @CachedInsights
      @CachedInsights  3 ปีที่แล้ว +2

      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.

    • @physrivdos
      @physrivdos 3 ปีที่แล้ว

      @@CachedInsights thnx for the response.

    • @bhushankumarsingh4941
      @bhushankumarsingh4941 3 ปีที่แล้ว

      @@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

  • @user-id9qm7fm8p
    @user-id9qm7fm8p ปีที่แล้ว

    Why didn't you write annotations for the getAll?

  • @mrinalbhattacharjee8091
    @mrinalbhattacharjee8091 ปีที่แล้ว

    Is it possible to install Redis software in Windows 10? Please let me know. Thank you for your nice lecture

  • @cbalu73
    @cbalu73 3 ปีที่แล้ว

    I couldn't see the Redis connection configuration in the spring-boot project

    • @CachedInsights
      @CachedInsights  3 ปีที่แล้ว

      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.

  • @mayurgaikwad9729
    @mayurgaikwad9729 3 ปีที่แล้ว

    Hie.. you didn't write any configuration file... i mean redisConnectionFactort code

  • @mayurgaikwad9729
    @mayurgaikwad9729 3 ปีที่แล้ว

    Without the connection code is it able to use redis..??

    • @PraveenSingh-sz6zj
      @PraveenSingh-sz6zj 2 ปีที่แล้ว +2

      Spring boot auto configures for you as dependency is present in the classpath due to declaration in pom.xml

  • @gulamsarwar7502
    @gulamsarwar7502 4 ปีที่แล้ว

    can you pls add the github link

    • @CachedInsights
      @CachedInsights  4 ปีที่แล้ว

      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