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 -

javascript - IE11 incompatibility with jQuery's 'readonly'? -

php - How can I echo out this array? -