2017-01-08 14:17:02 -05:00
|
|
|
## Object Caching
|
2016-07-08 23:34:27 -04:00
|
|
|
|
2017-01-08 14:17:02 -05:00
|
|
|
Object caching is on by default with following settings
|
2016-07-08 23:34:27 -04:00
|
|
|
|
2017-01-08 14:17:02 -05:00
|
|
|
- Cache size is 50% of your RAM size. Caching is disabled
|
|
|
|
if your RAM size is smaller than 8GB.
|
2016-07-08 23:34:27 -04:00
|
|
|
|
2017-01-08 14:17:02 -05:00
|
|
|
- Expiration of each entries happen on every 72 hours.
|
2016-07-08 23:34:27 -04:00
|
|
|
|
2017-01-08 14:17:02 -05: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-08 23:34:27 -04:00
|
|
|
|
|
|
|
### Behavior
|
|
|
|
|
2016-11-11 19:36:07 -05:00
|
|
|
Caching happens on both GET and PUT operations.
|
2016-07-08 23:34:27 -04:00
|
|
|
|
2016-11-11 19:36:07 -05:00
|
|
|
- GET caches new objects for entries not found in cache.
|
2017-01-08 14:17:02 -05:00
|
|
|
Otherwise serves from the cache.
|
2016-07-08 23:34:27 -04:00
|
|
|
|
2017-01-08 14:17:02 -05:00
|
|
|
- PUT/POST caches all successfully uploaded objects. Replaces
|
|
|
|
existing cached entry for the same object if needed.
|
2016-07-08 23:34:27 -04:00
|
|
|
|
2017-01-08 14:17:02 -05: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.
|