2017-01-08 20:17:02 +01:00
|
|
|
## Object Caching
|
2016-07-09 05:34:27 +02:00
|
|
|
|
2017-01-08 20:17:02 +01:00
|
|
|
Object caching is on by default with following settings
|
2016-07-09 05:34:27 +02:00
|
|
|
|
2017-01-08 20:17:02 +01:00
|
|
|
- Cache size is 50% of your RAM size. Caching is disabled
|
|
|
|
if your RAM size is smaller than 8GB.
|
2016-07-09 05:34:27 +02:00
|
|
|
|
2017-01-08 20:17:02 +01:00
|
|
|
- Expiration of each entries happen on every 72 hours.
|
2016-07-09 05:34:27 +02:00
|
|
|
|
2017-01-08 20:17:02 +01:00
|
|
|
- Garbage collection sweep of the expired entries happen every
|
|
|
|
1/4th the set expiration hours value (every 18 hours).
|
|
|
|
|
|
|
|
NOTE: None of the settings can be configured manually.
|
2016-07-09 05:34:27 +02:00
|
|
|
|
|
|
|
### Behavior
|
|
|
|
|
2016-11-12 01:36:07 +01:00
|
|
|
Caching happens on both GET and PUT operations.
|
2016-07-09 05:34:27 +02:00
|
|
|
|
2016-11-12 01:36:07 +01:00
|
|
|
- GET caches new objects for entries not found in cache.
|
2017-01-08 20:17:02 +01:00
|
|
|
Otherwise serves from the cache.
|
2016-07-09 05:34:27 +02:00
|
|
|
|
2017-01-08 20:17:02 +01:00
|
|
|
- PUT/POST caches all successfully uploaded objects. Replaces
|
|
|
|
existing cached entry for the same object if needed.
|
2016-07-09 05:34:27 +02:00
|
|
|
|
2017-01-08 20:17:02 +01:00
|
|
|
NOTE: Expiration happens automatically based on the configured
|
|
|
|
interval as explained above, frequently accessed objects stay
|
|
|
|
alive in cache for a significantly longer time on every cache hit.
|