Skip to content
Commit 4b320eab authored by Gábor Csárdi's avatar Gábor Csárdi
Browse files

Package cache improvements

New async operations:
- `add_url()`
- `copy_or_add()`
- `update_or_add()`

`add_url()` just adds the url, async.

`copy_or_add()` gets a package from the
cache, or from the url, if not in the cache,
and then it also adds it to the cache.

`update_or_add()` is similar, but always
tries to update the file from the url, using
an Etag. If an update is needed, it also updates
the cache.
parent b7c66d1a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment