Diskcache works well, we just wanted a dependency free version that we had more control over (easier cache key deletion). I think you'd have to write a custom hashing function for diskcache to use the function source code as a key.
I'm also unsure if Diskcache supports ignoring certain fields in the function call.