To limit the cache size under Ubuntu, edit the file:
/home/$USER/snap/spotify/current/.config/spotify/prefs
Add the following line for the limit of 1024 MB (=1 GB)
storage.size=1024