Home > Back-end >  Java program using redis cache data, do not check in redis client
Java program using redis cache data, do not check in redis client

Time:09-26

Java program using redis cache data, data is cached in, but do not check in redis client

CodePudding user response:

You must save that why do you say

CodePudding user response:

No no is not put into it, how do you determine his deposit

CodePudding user response:

To ask how to determine his deposit

CodePudding user response:

How to solve the building Lord, encounter the same problem

CodePudding user response:

Detailed point problem, otherwise, how

CodePudding user response:

Agree with the upstairs, 1: insert and access server, 2: insert error, 3: query error, only have these three points each give it a try

CodePudding user response:

The building Lord, you didn't do key must be serialized, and then at the time of the client query, actual it is wrong to your key, if didn't do the key serialization store, the actual deposit in front of the key will be more than a few characters, if you use redis client queries you want to be the key, the best in the process of key serialization, so the final key value is what you want the key, redisTemplate here are the two attributes & lt; The property name="keySerializer & gt;"

CodePudding user response:

I have a look at which is deposited in the db and then on the client select the corresponding db, go in to look at, should have you set the value of the

CodePudding user response:

Sure redis cache in, because after the set in the program, and to get it, is to be able to get to the value of the cache

CodePudding user response:

refer to the eighth floor DuDuWiki response:
I have a look at which is deposited in the db and then on the client select the corresponding db, should go in to look at, have you set the value of the



The elder brothers you said is so reasonable client default connection is the zeroth database and application inside, even is 1,
To select after 1 switch can check

CodePudding user response:

The building Lord knows how to check? Spring + redis, but also to be able to set and get but the client how to check? Want to see all cached data, and expiration of the time,

CodePudding user response:

Specify the database in the configuration file, this is the 13th library




CodePudding user response:

I also met, the code after deposit, the code can take to value in redis client get keys * don't take key name

CodePudding user response:

using the get keys * get less than, can use the get the key value

CodePudding user response:

Where you cache redis can take to the cache?

To ensure that the first

CodePudding user response:

Run into the same problem, this problem, do jedis cache, not the serialization, on the key cause jedis kept the key to the code,

https://blog.csdn.net/ddpwy/article/details/73287108

CodePudding user response:

Really is a problem of serialization, the great god

CodePudding user response:

Like your data into go in but to the end of the service display blank at this mistake
Can't open the value TAB:
Unable to load the key, because it is in the database does not exist, please reload the link tree, and then try again

CodePudding user response:

reference practiceing reply: 3/f
to ask how to determine his deposit in
directly using the command line to get you can get to know
  • Related