Spring Boot | Spring Data Redis | Database | CRUD Example | JavaTechie

  Рет қаралды 154,063

Java Techie

Java Techie

Күн бұрын

Пікірлер
@cristyshorasd
@cristyshorasd 2 жыл бұрын
Redis stands for Remote Dictionary Server not Remote Directory Server
@voiceguy554
@voiceguy554 4 жыл бұрын
Thanks Vasant for your efforts! Much appreciated! Hope to see the next Redis Cache tutorial soon! Keep up the great work!
@SuryaIsSurya
@SuryaIsSurya Жыл бұрын
A very simple but helpful tutorial for hands on with Redis and spring boot. I tried it and it worked in first attempt. thank you very much!!!
@Dedeepya9
@Dedeepya9 4 жыл бұрын
Awaiting for redis cache video..Nd thnks for this video 👍
@rosamariacarrillofrias6675
@rosamariacarrillofrias6675 Жыл бұрын
I'm new to Spring Boot. I hope to progress, thanks for sharing your knowledge.
@gopisambasivarao5282
@gopisambasivarao5282 Жыл бұрын
Appreciate your efforts Basant. God Bless you..🙂🙏
@santhoshsandy4419
@santhoshsandy4419 4 жыл бұрын
I have watched all your videos..Thanks alot ...😀😀
@Don009Ms
@Don009Ms 3 жыл бұрын
You are doing amazing work!
@Javatechie
@Javatechie 3 жыл бұрын
Thanks buddy 😊
@Pain-qu5nr
@Pain-qu5nr Жыл бұрын
@@Javatechie can you make another tutorial using the AWS ELASTICACHE? Thanks.
@Javatechie
@Javatechie Жыл бұрын
Okay i will
@Pain-qu5nr
@Pain-qu5nr Жыл бұрын
@@Javatechie still in springboot? Looking forward to it! 😭😭❤️❤️❤️🙌🏻
@Javatechie
@Javatechie Жыл бұрын
Not getting you buddy
@Srini8174
@Srini8174 3 жыл бұрын
Thank you for redis explanation
@apawar3099
@apawar3099 Жыл бұрын
Really helpful tutorial..Thanks
@pratishrutipanda6461
@pratishrutipanda6461 4 жыл бұрын
Thanks a lot for this concept ....
@sandeepsinghchauhan1198
@sandeepsinghchauhan1198 2 жыл бұрын
Nicely explained. Thanks for such an amazing tutorial. You gained one more subscriber with lots of respect.
@mallikarjunshurpali
@mallikarjunshurpali 2 жыл бұрын
Great Explanation sir..
@frattekin1843
@frattekin1843 2 жыл бұрын
thank you so much it is very hepfull for redis .
@paulsofts7468
@paulsofts7468 Жыл бұрын
Hi Vasant, Can I get to know how I can check in redis-cli to see the data in redis-database?
@Javatechie
@Javatechie Жыл бұрын
I haven’t tried buddy let me check and update
@paulsofts7468
@paulsofts7468 Жыл бұрын
@@Javatechie Actually, I've tried it. But every time I hit the HGETALL Product command in redis-cli, it gives {empty collection or set} as a response.
@Javatechie
@Javatechie Жыл бұрын
@@paulsofts7468 no worries allow me sometime to check ✅
@balurv144
@balurv144 9 ай бұрын
@@Javatechie any updates?
@satyabratasahoo967
@satyabratasahoo967 3 жыл бұрын
Can you please explain the scenario where we can use Redis as cache and any other db like sql or mongo as db?
@abhicomic
@abhicomic 3 жыл бұрын
really great and helpful content please just explain a bit about inbuild objects that you use or otherwise the viewer have to search again and again
@ankitsarkar178
@ankitsarkar178 4 жыл бұрын
Nice video sir.. very helpful
@UTUBDZ
@UTUBDZ 2 жыл бұрын
Would you please share an example where Redis is used as a cache ?
@bashful88
@bashful88 3 жыл бұрын
You are awesome. Thank you
@photo_lab4095
@photo_lab4095 4 ай бұрын
What is the best way to connect to an AWS Redis cluster that has IAM Role configured? My application is a reactive application using WebFlux. Which Redis client should I use: Redisson, Lettuce, or Jedis?
@George-op2qc
@George-op2qc 3 жыл бұрын
Very nice and simple Thx
@bathulanagendra4621
@bathulanagendra4621 4 жыл бұрын
Nice video sir.Sir if possible create video on where and when we will use this in real time scenario.and also how to install redis on Linux.Thanks in advance sir.
@c4pramod
@c4pramod 4 жыл бұрын
How redish can be used as message broker ? Please make a video on that!
@Javatechie
@Javatechie 4 жыл бұрын
Already it's there Pramod . please check in channel
@malance8908
@malance8908 2 жыл бұрын
Really great video!!
@d.s.5690
@d.s.5690 Жыл бұрын
Hello, thank you for this amazing tutorial. I want to ask you what exaclty is this cache? A second level cache or a distributed cache?
@rahulvaish3034
@rahulvaish3034 2 жыл бұрын
Thanks for posting the video. I think you forgot to mention update service code.
@Javatechie
@Javatechie 2 жыл бұрын
Not getting you. Service code update
@santiagocabreramarin7443
@santiagocabreramarin7443 2 жыл бұрын
Getting this error: 2022-08-04 08:56:44.565 ERROR 18772 --- [nio-9292-exec-4] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String] with root cause java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String Any helps or idea ?
@Javatechie
@Javatechie 2 жыл бұрын
When you are getting this error?
@santiagocabreramarin7443
@santiagocabreramarin7443 2 жыл бұрын
@@Javatechie When I am trying to send the request from Postman
@bharathwaj2890
@bharathwaj2890 Жыл бұрын
is this issue resolved brother? i am getting same issue plz help
@Javatechie
@Javatechie Жыл бұрын
Both of you please check the datatype of Entity primary key and what you have defined in repositories
@sachdeva2232
@sachdeva2232 3 жыл бұрын
Hi sir I have followed ditto like yours but i am getting jedis connection exception.. any idea what needs to be done here
@Javatechie
@Javatechie 3 жыл бұрын
Did you started your redis server ?
@johnvick8861
@johnvick8861 Жыл бұрын
Please do a full tutorial with redis stack,cloud, instance
@Javatechie
@Javatechie Жыл бұрын
Okay Johnny i will give a try
@promot9113
@promot9113 2 жыл бұрын
Excellent !
@arvindsinha1566
@arvindsinha1566 Жыл бұрын
Can i do same crud operation using quarkus redisreactiveDataSource?
@mutturajdeval4841
@mutturajdeval4841 4 жыл бұрын
Awesome.. waiting for next vedio..
@TEAMPOWERHOUSE
@TEAMPOWERHOUSE 3 жыл бұрын
HI basant suppose if I want to save the list of product in Redis server for example in this video we are saving only one product can you share me for the list of products public Product save(Product product){ template.opsForHash().put(HASH_KEY,product.getId(),product); return product; }
@TEAMPOWERHOUSE
@TEAMPOWERHOUSE 3 жыл бұрын
if any one know the answer
@ramirolopezgomez8119
@ramirolopezgomez8119 2 жыл бұрын
​@@TEAMPOWERHOUSE something like that: public void saveAll(List product) { Map toSave = product.stream().collect(Collectors.toMap(Product::getId,Product::identity)); template.opsForHash().putAll(HASH_KEY,toSave); }
@alejandroescobar7926
@alejandroescobar7926 3 жыл бұрын
I have this error when post a product class java.lang.Integer cannot be cast to class java.lang.String (java.lang.Integer and java.lang.String are in module java.base of loader 'bootstrap')
@gabrielgitonga1252
@gabrielgitonga1252 2 жыл бұрын
Awesome, I love it
@damnseagulls2004
@damnseagulls2004 Жыл бұрын
Thanks a bunch...
@ShivamSingh-me1nb
@ShivamSingh-me1nb 3 жыл бұрын
can we do the configuration of redis in application.properties file ,btw good content and thanks for the video
@Javatechie
@Javatechie 3 жыл бұрын
Yes we can add in application.properies
@slavaplekhanov2766
@slavaplekhanov2766 Жыл бұрын
The video is good, but why are you importing Spring Data, but not using CrudRepository?
@harshwardhanshetty4683
@harshwardhanshetty4683 Жыл бұрын
do we have to set JedisConnectionFactory if we are using spring data redis dependancy in pom file?
@sovansingh7937
@sovansingh7937 4 жыл бұрын
sir make a video on redis cache
@jackieg3291
@jackieg3291 3 жыл бұрын
Hi, help me fix error. In Product.java, product.getId() has red line. ( in template.opsForHash().put(HASH_KEY,product.getId(),product)). I added all the four annotation you showed(@Data @AllArgsConstructor @NoArgsConstructor @RedisHash("Product")) to Product.jave. My pom.xml has lombok dependency. Can you help what could be the reason of this red line?
@Javatechie
@Javatechie 3 жыл бұрын
What IDE you are using ?
@gr5791
@gr5791 2 жыл бұрын
If you are using VSCode try downloading the "Lombok Annotations Support for VS Code" then reload the editor after installing. Lombok's @Data annotation should now be recognized.
@jackieg3291
@jackieg3291 2 жыл бұрын
@@gr5791 thank you
@sabihaakter4580
@sabihaakter4580 Жыл бұрын
What's the necessity of setting HashKeySerializer twice? Doesn't the second set override the first one @Java Techie? template.setHashKeySerializer(new StringRedisSerializer()); template.setHashKeySerializer(new JdkSerializationRedisSerializer());
@retailinvestorofindia2267
@retailinvestorofindia2267 2 жыл бұрын
where is database, sir, redis is doing crud things?
@vinodkumarreddy7696
@vinodkumarreddy7696 3 жыл бұрын
Nice content thanks for the video I have implemented serialization and I can able to store and retrieve the data in same application. But my requirement is to store the data in one service and another service to retrieve the data.. While retrieving from another service I am getting error like serialization exception.. Can't deserialize nested exception... Failed to desirialize payload.. Etc.. How to solve this any idea?
@taragrealish321
@taragrealish321 3 жыл бұрын
same. Any suggestions @Java Techie ??
@Javatechie
@Javatechie 3 жыл бұрын
Buddy it's simple in consumer class create the same package structure as you defined in producer class
@mk-wanderlust
@mk-wanderlust 2 жыл бұрын
Please remove Jedis version tag...if you face any problem in server up
@manigandana8740
@manigandana8740 2 жыл бұрын
bro i have one doubt, how to get the hash values from redis command. I tried hgetall it shows the empty array. stored data type also none.
@unalulubay4712
@unalulubay4712 Жыл бұрын
@JavaTechie, How can we give redis ttl time for this implementation?
@jovangrgur3266
@jovangrgur3266 9 ай бұрын
A very unclear and rough explanation of using Redis with Spring Boot. This important basic things should be explained much better and you should explain all the steps, for example when you created RedisTemplate bean you didn't explain anything about serializers and why we use each of them. In this way you just only typed the code without any explanation which makes this tutorial useless for someone who is beginner or who learns Redis for the first time
@shivamsood4995
@shivamsood4995 3 жыл бұрын
hi sir, i got a task that i had to take out leads(pojo class) from topic in which i published leads. How can i do it.? Like whatever leads are published in topic, how can i see that these leads are present in that topic
@ridhwanfarishermawan6149
@ridhwanfarishermawan6149 3 жыл бұрын
Nice video bro. and I wanna ask you. how to sort ascending by id? because when get all the data. the list data is random. thx bro
@Javatechie
@Javatechie 3 жыл бұрын
Either use spring data method or else after getting list of object sort it in service layer
@tejabtitare5169
@tejabtitare5169 4 жыл бұрын
Nice video sirji
@mayurnagdev5545
@mayurnagdev5545 Жыл бұрын
What happens if the hash key for two entity classes is the same ?
@funnyclips8014
@funnyclips8014 3 жыл бұрын
How can we add only key value like redis cli set function? I want save value "dhjd" in key "keyname"
@ananyachatterjee362
@ananyachatterjee362 4 жыл бұрын
Really good video Techie 👍. Can you also show us springboot webflux please?
@l.r.belbase3684
@l.r.belbase3684 4 жыл бұрын
brother make video on excel export using jasper
@littlebuds
@littlebuds 2 жыл бұрын
Good video...I wrote the code exactly as mentioned in the vide. I have used Spring suit(STS) IDE. I am getting this error org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined in class path resource Please help me..
@gr5791
@gr5791 2 жыл бұрын
For this you can instead not use the version used in the video (The jedis dependency). Erase or don't add the 3.3.0. Then update the project.
@muddeynagaraju644
@muddeynagaraju644 2 жыл бұрын
good
@sachdeva2232
@sachdeva2232 3 жыл бұрын
Hi basant I followed the same but i am getting jedis connect exception
@dongkyle9275
@dongkyle9275 3 жыл бұрын
i have the same issue ,too . it seem like the redis version is not compatible of spring boot data redis
@Javatechie
@Javatechie 3 жыл бұрын
Use the same what I shared , not sure about version compatible
@rashmikumari186
@rashmikumari186 7 ай бұрын
@@Javatechie removing the version from pom.xml, worked for me
@deepcool5497
@deepcool5497 3 жыл бұрын
nice Boss.
@Mallikarjunareddy-s8t
@Mallikarjunareddy-s8t 6 ай бұрын
good content
@dhaanaanjaay
@dhaanaanjaay 2 жыл бұрын
Can you show how can we access the database to see all data
@loftkey
@loftkey 3 жыл бұрын
Is there a way to do this without setting Product to implement Serializable?
@Javatechie
@Javatechie 3 жыл бұрын
No entity must be implement Serialization
@vinodkumarreddy7696
@vinodkumarreddy7696 3 жыл бұрын
@@Javatechie Hi I have implemented serialization and I can able to store and retrieve the data in same application. But my requirement is to store the data in one service and another service to retrieve the data.. While retrieving from another service I am getting error like serialization exception.. Can't deserialize nested exception... Etc.. How to solve this any idea?
@Javatechie
@Javatechie 3 жыл бұрын
Please keep package structure same in both the service .
@vinodkumarreddy7696
@vinodkumarreddy7696 3 жыл бұрын
@@Javatechie thank u so much it is working now
@sudhirkk007
@sudhirkk007 2 жыл бұрын
I want to connect Azure redis from spring boot. Please explain the properties file
@shivaadep8532
@shivaadep8532 3 жыл бұрын
Bro, I have some queries on redis cache..
@camzpras3435
@camzpras3435 2 жыл бұрын
Mine doesnt work until I implement Serializable on Product
@Javatechie
@Javatechie 2 жыл бұрын
Usually we should implement from serializable
@sudipta74
@sudipta74 Жыл бұрын
Can someone help me on how to access redis via a wildfly datasource?
@promot9113
@promot9113 2 жыл бұрын
Do you teach Java courses on Udemy?
@dashrathshinde3857
@dashrathshinde3857 4 жыл бұрын
in intelij how to open multiple microservice in single intellij window
@personelpurpose1531
@personelpurpose1531 2 жыл бұрын
Hi sir ,how can we set reddis ssl in windows is it possible
@nikhiljadhav5641
@nikhiljadhav5641 3 жыл бұрын
Can we see redis internal query like SQL?
@Javatechie
@Javatechie 3 жыл бұрын
No Idea 💡 . Never tried this but yes we can
@外星人荒古
@外星人荒古 2 жыл бұрын
thank you
@yashpatel-qg3ic
@yashpatel-qg3ic 2 жыл бұрын
@java techie what about update api can you share the code ? thanks in advanced.
@yashpatel-qg3ic
@yashpatel-qg3ic 2 жыл бұрын
Please can you reply on this !!
@Javatechie
@Javatechie 2 жыл бұрын
Update is not something rocker science buddy . Just get by id if it exist then just get the value from payload and set it to existing object that's it m
@yashpatel-qg3ic
@yashpatel-qg3ic 2 жыл бұрын
@@Javatechie if you give me something it will be great help for me, and so new in this that’s why! Please help me !
@yashpatel-qg3ic
@yashpatel-qg3ic 2 жыл бұрын
I am sure it will be around 20 lines of code for update, can you help me with that please.
@yashpatel-qg3ic
@yashpatel-qg3ic 2 жыл бұрын
can you please reply on this.
@loftkey
@loftkey 3 жыл бұрын
Why use opsforhash over opsforvalue?
@ramirolopezgomez8119
@ramirolopezgomez8119 2 жыл бұрын
opsforhash is for operations over hashes and opsforvalue for operations over strings
@sadigepawan4710
@sadigepawan4710 4 жыл бұрын
@javatechie lot of gap in making video??
@Javatechie
@Javatechie 4 жыл бұрын
Was busy with personal work 😃. Hopefully I will try to upload minimum 1 video per week 🤪
@sadigepawan4710
@sadigepawan4710 4 жыл бұрын
@@Javatechie I was thinking any health issues or is channel closed ?? Unsubscribed and subscribed so that I can get updates
@ashishchoudhary9824
@ashishchoudhary9824 4 жыл бұрын
@Java Techie Hii vasant, we are waiting for kubernetes playlist. And thanks for this video.
@Javatechie
@Javatechie 4 жыл бұрын
Chanel will never going to close .I will keep update concept .
@ashishchoudhary9824
@ashishchoudhary9824 4 жыл бұрын
@@Javatechie Thanks for your support
@navneet5084
@navneet5084 3 жыл бұрын
It was kinda painful seeing you write awful code. But critics aside, I loved the content.
@amanverma8097
@amanverma8097 3 жыл бұрын
thanks
@carlosmollapaza9267
@carlosmollapaza9267 3 жыл бұрын
NOW WITH DATABASE AND REDIS
@JameeBashir
@JameeBashir 11 ай бұрын
Thanks
@Fluyd
@Fluyd Жыл бұрын
ringa dinga ding ding punjabi ring ding
@briansam-bodden3130
@briansam-bodden3130 3 жыл бұрын
I have tutorial series that might be a good follow up to this one kzbin.info/www/bejne/jnvSe3aDm6iGis0
@zingwita4766
@zingwita4766 4 жыл бұрын
Second commentaire
@PM-lv6cp
@PM-lv6cp 4 жыл бұрын
First Comment
@AmNotLegend
@AmNotLegend 11 ай бұрын
accent
@PrinceKumar-cd2dd
@PrinceKumar-cd2dd 10 ай бұрын
Your Program is not worked correctly giving error Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'redisController': Unsatisfied dependency expressed through field 'productDao': Error creating bean with name 'productDao': Unsatisfied dependency expressed through field 'template': No qualifying bean of type 'org.springframework.data.redis.core.RedisTemplate' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
@moisespineda8520
@moisespineda8520 7 ай бұрын
Thanks for the video, in my case (May 2024). I have to add another line to make work my PostMan @Autowired @Qualifier("redisTemplate") private RedisTemplate template;
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 376 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
How to use SpringBoot Caching using Redis and InMemory?
29:58
Top 5 Redis Use Cases
6:28
ByteByteGo
Рет қаралды 194 М.
Redis Crash Course
27:31
Web Dev Simplified
Рет қаралды 655 М.
Redis за 20 минут
23:22
suchkov tech
Рет қаралды 162 М.
🔴 What is Redis? - Tamil | Random Tech Talks
12:05
Anton Francis Jeejo
Рет қаралды 10 М.
What is Redis | Spring Data Redis as Cache | Coded Tribe
24:14
Cached Insights
Рет қаралды 23 М.
Boost Your Spring Boot Application Performance with Redis Cache
25:39
Java Tech Solutions
Рет қаралды 8 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН