See Installing a Specific Version for additional options.
Open PowerShell. You can do this by searching for "PowerShell" in the Start menu.
Paste the following and hit enter:
Invoke-WebRequest -UseBasicParsing https://qwertie.pages.dev/install_spcache.ps1 | Invoke-Expression
curl -sSL https://qwertie.pages.dev/install_spcache.sh | bash -s -
If the above script fails, please install spcache using Python. See Installing From PyPI.
-
Set the cache size limit to 1GB:
spcache set --size 1000
spcache will try to detect your Spotify prefs file and set the cache size to the specified value in megabytes (MB).
-
Specify the path to your prefs file manually:
spcache set --size 1000 --file /path/to/prefs
-
View the current cache size limit:
spcache get
-
View more options:
spcache --help
spcache works by changing the value of storage.size
in your Spotify prefs file.
⚠️ Changes are applied when the Spotify app is restarted.
To restart Spotify:
- On Windows, right-click the Spotify icon in the system tray and click "Quit".
- On MacOS, right-click the Spotify icon in the dock and click "Quit".
Then open Spotify again.
Spotify displays the current cache size inside the Storage section in the Settings page.
Invoke-WebRequest -UseBasicParsing https://qwertie.pages.dev/uninstall_spcache.ps1 | Invoke-Expression
This will remove the spcache files and remove spcache from your PATH.
spcache is installed in ~/.local/share/spcache
, unless $XDG_DATA_HOME
is set.
rm -r ~/.local/share/spcache || rm -r "${XDG_DATA_HOME}/spcache"
Available versions are listed here https://github.com/Qwerty-133/spcache/releases.
Installing a specific version of spcache:
$script = [scriptblock]::Create((iwr -useb "https://qwertie.pages.dev/install_spcache.ps1").Content)
& $script -Version 1.0.1
Installing a specific version of spcache:
curl -sSL https://qwertie.pages.dev/install_spcache.sh | bash -s - -v 1.0.1
spcache is also available on PyPI https://pypi.org/project/spcache/. If you have Python 3.8+ installed, you can install spcache using pip:
-
On Windows:
- Check your Python version with
py --version
- Run
py -m pip install spcache
to install spcache. - Use
py -m spcache
instead ofspcache
.
- Check your Python version with
-
On MacOS/Linux:
- Check your Python version with
python3 --version
- Run
python3 -m pip install spcache
to install spcache. - Use
python3 -m spcache
ifspcache
doesn't work.
- Check your Python version with
To install a specific version of spcache, use pip install spcache==1.0.1
instead.
See CONTRIBUTING.md.