How to retrieve an object from cache

Hi Team,

I am storing an object (containing various information) into cache like below code:
frappe.cache().set(frappe.session.user+‘–zerodha_obj’, kite)

But when I retrieve that object then I am not able to fetch information from that object because it is now bytes string.

Can any one please know how to solve that?
Thanks