Hi, I am new to redis and want to help here. I am using java and sql server 2008 and redis server. To interact with redis, I use jedis api for java. I know that redis is used to store key-based things. Each key has a meaning.
Problem:
I have the name of the user table that stores data like id, name, email, age, country. This is a sql table schema. Now this table has several rows (also some data). Now here my primary key is id, and its just for using the DB. It is not needed for me in the application.
Now in sql I can insert a new row, update the row, search for any user, delete the user.
I want to save this table data in redis. Then I want to perform similar operations on redis, for example, search, insert, delete. But if I have a good design in the section "Storing this information in the database and Redis", then these operations will be performed simply. Remember that I also have several tables. Therefore, you should store data in redis based on a table.
My problem
Any design or information you can advise me on how I can convert DB data to Redis and perform all operations. I ask about this because I know that Facebook also uses redis to store data. Then how they store the data.
Any help would be greatly appreciated.
source share