redis - Using jedis How to cache Java object -


using redis java client jedis
how can cache java object?

you can't store objects directly redis. convert object string , put in redis. in order object must serialized. convert object bytearray , use encoding algorithm (ex base64encoding) , convert string store in redis. while retrieving reverse process, convert string byte array using decoding algorithm (ex: base64decoding) , convert object.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -