python-diskcache
python-diskcache copied to clipboard
Make memoized `__cache_key__` invertible
Changes the args_to_key construction so that it both produces unique keys for its different arguments and implements its inverse key_to_args. Adds test to check the these as inverses.
See also https://github.com/grantjenks/python-diskcache/issues/313