cache

To determine if a package really exists, there must be a quick way to query a list of all available packages that does not mean individually making requests with each package name.

To solve this, tori will ask the package manager for a list of all available packages and cache it. It then uses this file to determine if package names are valid.

By default, the cache is updated when the current date (day, month and year) differs from the date of modification of the cache file. Note that this is not the same as 24 hours after the last refresh.

The user may configure a different frequency and can also force a cache refresh through the command line interface using tori cache.