vivekn / redis-simple-cache

Simple redis based cache for storing results of python function calls, json encoded strings or html.
Other
122 stars 69 forks source link

Override serialization #48

Closed acdameli closed 1 year ago

acdameli commented 5 years ago

This should allow someone to override the key serialization method. The main goal was to provide a way to provide caching for instance/class methods.

This should allow someone to serialize arguments via a method other than simply handing off the to json.dumps or pickle.dumps. You probably want to map module.classname.methodname into a string (instead of trying to deeply serialize all properties), or strip this argument altogether.