cache: add pl_cache_{set,get}_dir() helpers
Useful for saving/loading cache objects to/from a directory. This is the approach preferred by mpv, since it avoids rewriting the entire cache just because of one addition, and also avoids the strict need for a global size cap.
Sponsored-by: nxtedition