Redis stands for Remote Dictionary Server not Remote Directory Server
@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!!!
@rosamariacarrillofrias6675 Жыл бұрын
I'm new to Spring Boot. I hope to progress, thanks for sharing your knowledge.
@voiceguy5544 жыл бұрын
Thanks Vasant for your efforts! Much appreciated! Hope to see the next Redis Cache tutorial soon! Keep up the great work!
@Dedeepya94 жыл бұрын
Awaiting for redis cache video..Nd thnks for this video 👍
@gopisambasivarao5282 Жыл бұрын
Appreciate your efforts Basant. God Bless you..🙂🙏
@Don009Ms2 жыл бұрын
You are doing amazing work!
@Javatechie2 жыл бұрын
Thanks buddy 😊
@Pain-qu5nr Жыл бұрын
@@Javatechie can you make another tutorial using the AWS ELASTICACHE? Thanks.
@Javatechie Жыл бұрын
Okay i will
@Pain-qu5nr Жыл бұрын
@@Javatechie still in springboot? Looking forward to it! 😭😭❤️❤️❤️🙌🏻
@Javatechie Жыл бұрын
Not getting you buddy
@santhoshsandy44194 жыл бұрын
I have watched all your videos..Thanks alot ...😀😀
@apawar3099 Жыл бұрын
Really helpful tutorial..Thanks
@satyabratasahoo9673 жыл бұрын
Can you please explain the scenario where we can use Redis as cache and any other db like sql or mongo as db?
@Srini81743 жыл бұрын
Thank you for redis explanation
@mallikarjunshurpali Жыл бұрын
Great Explanation sir..
@TEAMPOWERHOUSE3 жыл бұрын
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; }
@TEAMPOWERHOUSE3 жыл бұрын
if any one know the answer
@ramirolopezgomez81192 жыл бұрын
@@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); }
@santiagocabreramarin74432 жыл бұрын
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 ?
@Javatechie2 жыл бұрын
When you are getting this error?
@santiagocabreramarin74432 жыл бұрын
@@Javatechie When I am trying to send the request from Postman
@bharathwaj2890 Жыл бұрын
is this issue resolved brother? i am getting same issue plz help
@Javatechie Жыл бұрын
Both of you please check the datatype of Entity primary key and what you have defined in repositories
@pratishrutipanda64614 жыл бұрын
Thanks a lot for this concept ....
@photo_lab40953 ай бұрын
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?
@frattekin18432 жыл бұрын
thank you so much it is very hepfull for redis .
@sandeepsinghchauhan11982 жыл бұрын
Nicely explained. Thanks for such an amazing tutorial. You gained one more subscriber with lots of respect.
@paulsofts746810 ай бұрын
Hi Vasant, Can I get to know how I can check in redis-cli to see the data in redis-database?
@Javatechie10 ай бұрын
I haven’t tried buddy let me check and update
@paulsofts746810 ай бұрын
@@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.
@Javatechie10 ай бұрын
@@paulsofts7468 no worries allow me sometime to check ✅
@balurv1448 ай бұрын
@@Javatechie any updates?
@alejandroescobar79263 жыл бұрын
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')
@UTUBDZ2 жыл бұрын
Would you please share an example where Redis is used as a cache ?
@ankitsarkar1784 жыл бұрын
Nice video sir.. very helpful
@sachdeva22323 жыл бұрын
Hi sir I have followed ditto like yours but i am getting jedis connection exception.. any idea what needs to be done here
@Javatechie3 жыл бұрын
Did you started your redis server ?
@c4pramod3 жыл бұрын
How redish can be used as message broker ? Please make a video on that!
@Javatechie3 жыл бұрын
Already it's there Pramod . please check in channel
@abhicomic3 жыл бұрын
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
@malance89082 жыл бұрын
Really great video!!
@bashful883 жыл бұрын
You are awesome. Thank you
@arvindsinha1566 Жыл бұрын
Can i do same crud operation using quarkus redisreactiveDataSource?
@mutturajdeval48414 жыл бұрын
Awesome.. waiting for next vedio..
@promot9113 Жыл бұрын
Excellent !
@jackieg32913 жыл бұрын
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?
@Javatechie3 жыл бұрын
What IDE you are using ?
@gr57912 жыл бұрын
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.
@jackieg32912 жыл бұрын
@@gr5791 thank you
@George-op2qc3 жыл бұрын
Very nice and simple Thx
@harshwardhanshetty4683 Жыл бұрын
do we have to set JedisConnectionFactory if we are using spring data redis dependancy in pom file?
@bathulanagendra46214 жыл бұрын
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.
@manigandana87402 жыл бұрын
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.
@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?
@mk-wanderlust2 жыл бұрын
Please remove Jedis version tag...if you face any problem in server up
@shivamsood49953 жыл бұрын
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
@rahulvaish3034 Жыл бұрын
Thanks for posting the video. I think you forgot to mention update service code.
@Javatechie Жыл бұрын
Not getting you. Service code update
@tejabtitare51694 жыл бұрын
Nice video sirji
@johnvick8861 Жыл бұрын
Please do a full tutorial with redis stack,cloud, instance
@Javatechie Жыл бұрын
Okay Johnny i will give a try
@funnyclips80143 жыл бұрын
How can we add only key value like redis cli set function? I want save value "dhjd" in key "keyname"
@vinodkumarreddy76963 жыл бұрын
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?
@taragrealish3213 жыл бұрын
same. Any suggestions @Java Techie ??
@Javatechie3 жыл бұрын
Buddy it's simple in consumer class create the same package structure as you defined in producer class
@damnseagulls2004 Жыл бұрын
Thanks a bunch...
@unalulubay4712 Жыл бұрын
@JavaTechie, How can we give redis ttl time for this implementation?
@mayurnagdev5545 Жыл бұрын
What happens if the hash key for two entity classes is the same ?
@littlebuds2 жыл бұрын
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..
@gr57912 жыл бұрын
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.
@deepcool54973 жыл бұрын
nice Boss.
@gabrielgitonga12522 жыл бұрын
Awesome, I love it
@ShivamSingh-me1nb3 жыл бұрын
can we do the configuration of redis in application.properties file ,btw good content and thanks for the video
@Javatechie3 жыл бұрын
Yes we can add in application.properies
@sachdeva22323 жыл бұрын
Hi basant I followed the same but i am getting jedis connect exception
@dongkyle92753 жыл бұрын
i have the same issue ,too . it seem like the redis version is not compatible of spring boot data redis
@Javatechie3 жыл бұрын
Use the same what I shared , not sure about version compatible
@rashmikumari1866 ай бұрын
@@Javatechie removing the version from pom.xml, worked for me
@sudhirkk0072 жыл бұрын
I want to connect Azure redis from spring boot. Please explain the properties file
@slavaplekhanov2766 Жыл бұрын
The video is good, but why are you importing Spring Data, but not using CrudRepository?
@Mallikarjunareddy-s8t5 ай бұрын
good content
@l.r.belbase36844 жыл бұрын
brother make video on excel export using jasper
@ridhwanfarishermawan61493 жыл бұрын
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
@Javatechie3 жыл бұрын
Either use spring data method or else after getting list of object sort it in service layer
@dhaanaanjaay2 жыл бұрын
Can you show how can we access the database to see all data
@loftkey3 жыл бұрын
Is there a way to do this without setting Product to implement Serializable?
@Javatechie3 жыл бұрын
No entity must be implement Serialization
@vinodkumarreddy76963 жыл бұрын
@@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?
@Javatechie3 жыл бұрын
Please keep package structure same in both the service .
@vinodkumarreddy76963 жыл бұрын
@@Javatechie thank u so much it is working now
@retailinvestorofindia22672 жыл бұрын
where is database, sir, redis is doing crud things?
@sudipta7411 ай бұрын
Can someone help me on how to access redis via a wildfly datasource?
@muddeynagaraju6442 жыл бұрын
good
@personelpurpose15312 жыл бұрын
Hi sir ,how can we set reddis ssl in windows is it possible
@sovansingh79374 жыл бұрын
sir make a video on redis cache
@dashrathshinde38574 жыл бұрын
in intelij how to open multiple microservice in single intellij window
@camzpras34352 жыл бұрын
Mine doesnt work until I implement Serializable on Product
@Javatechie2 жыл бұрын
Usually we should implement from serializable
@nikhiljadhav56413 жыл бұрын
Can we see redis internal query like SQL?
@Javatechie3 жыл бұрын
No Idea 💡 . Never tried this but yes we can
@shivaadep85323 жыл бұрын
Bro, I have some queries on redis cache..
@ananyachatterjee3624 жыл бұрын
Really good video Techie 👍. Can you also show us springboot webflux please?
@jovangrgur32668 ай бұрын
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
@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());
@yashpatel-qg3ic2 жыл бұрын
@java techie what about update api can you share the code ? thanks in advanced.
@yashpatel-qg3ic2 жыл бұрын
Please can you reply on this !!
@Javatechie2 жыл бұрын
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-qg3ic2 жыл бұрын
@@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-qg3ic2 жыл бұрын
I am sure it will be around 20 lines of code for update, can you help me with that please.
@yashpatel-qg3ic2 жыл бұрын
can you please reply on this.
@loftkey3 жыл бұрын
Why use opsforhash over opsforvalue?
@ramirolopezgomez81192 жыл бұрын
opsforhash is for operations over hashes and opsforvalue for operations over strings
@promot9113 Жыл бұрын
Do you teach Java courses on Udemy?
@外星人荒古2 жыл бұрын
thank you
@navneet50843 жыл бұрын
It was kinda painful seeing you write awful code. But critics aside, I loved the content.
@sadigepawan47104 жыл бұрын
@javatechie lot of gap in making video??
@Javatechie4 жыл бұрын
Was busy with personal work 😃. Hopefully I will try to upload minimum 1 video per week 🤪
@sadigepawan47104 жыл бұрын
@@Javatechie I was thinking any health issues or is channel closed ?? Unsubscribed and subscribed so that I can get updates
@ashishchoudhary98244 жыл бұрын
@Java Techie Hii vasant, we are waiting for kubernetes playlist. And thanks for this video.
@Javatechie4 жыл бұрын
Chanel will never going to close .I will keep update concept .
@ashishchoudhary98244 жыл бұрын
@@Javatechie Thanks for your support
@briansam-bodden31303 жыл бұрын
I have tutorial series that might be a good follow up to this one kzbin.info/www/bejne/jnvSe3aDm6iGis0
@amanverma80973 жыл бұрын
thanks
@JameeBashir10 ай бұрын
Thanks
@carlosmollapaza92673 жыл бұрын
NOW WITH DATABASE AND REDIS
@Fluyd Жыл бұрын
ringa dinga ding ding punjabi ring ding
@AmNotLegend10 ай бұрын
accent
@zingwita47664 жыл бұрын
Second commentaire
@PM-lv6cp4 жыл бұрын
First Comment
@PrinceKumar-cd2dd8 ай бұрын
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)}
@moisespineda85206 ай бұрын
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;