The function first checks if the 'rb3.cachedir' option is set. If not, it uses
a subfolder in the temporary directory. It creates the main cache folder and
the three subfolders if they don't already exist, then stores their paths in
the rb3 registry.
The cache structure includes: