mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-27 05:46:25 +02:00
add support for tiered caches
The -cache flag can be specified multiple times to create a tier of caches. Typically this would be used to be put a small in-memory cache in front of a slower on-disk cache. Fixes #111
This commit is contained in:
parent
a57047ff22
commit
13409fd7c6
2 changed files with 47 additions and 13 deletions
10
README.md
10
README.md
|
|
@ -129,6 +129,16 @@ version.
|
|||
|
||||
[codercat URL]: http://localhost:8080/500/https://octodex.github.com/images/codercat.jpg
|
||||
|
||||
If the `-cache` flag is specified multiple times, multiple caches will be
|
||||
created in a [tiered fashion][]. Typically this is used to put a smaller and
|
||||
faster in-memory cache in front of a larger but slower on-disk cache. For
|
||||
example, the following will first check an in-memory cache for an image,
|
||||
followed by a gcs bucket:
|
||||
|
||||
imageproxy -cache memory -cache gcs://my-bucket/
|
||||
|
||||
[tiered fashion]: https://godoc.org/github.com/die-net/lrucache/twotier
|
||||
|
||||
### Referrer Whitelist ###
|
||||
|
||||
You can limit images to only be accessible for certain hosts in the HTTP
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue