Lesson 8. Integrating with Redis
search: keywords: ['lesson 8', '8', 'redis', 'database', 'fast database', 'lettuce']
Lesson 8. Integrating with Redis
Hi! Long time I haven't posted lessons. Sorry for that:) Today we are integrating our highload bot with lighting fast database called Redis. I am using it for data that needs quick access.
Library
For driver I chose Lettuce because of its popularity and good documentation. You can download it here or install with Maven:
Establish connection
Then, you need to connect to Redis:
Connection established
And thats all! Now you can execute commands like that:
Also, don't forget to close connection with Redis when you done your work:
Very short lesson, but I think useful :D Thanks for your time, hope to see you soon!
Last updated