+- The built-in policies in `redis_func_cache.policies` use [`pickle`][] to serialize function arguments, then calculate the cache key by hashing the serialized data with `md5`. [`pickle`][] is chosen because only the hash bytes are stored in Redis, not the serialized data itself, so this is safe. However, [`pickle`][] causes incompatibility between different Python versions. If your application needs to be compatible across Python versions, you should define your own hash policy using a version-compatible serialization method, for example:
0 commit comments