From ce8ca151cfd7fef5ce4168117fb33302d713cea4 Mon Sep 17 00:00:00 2001 From: Daniel Leong Date: Thu, 19 Nov 2015 15:48:17 +1300 Subject: [PATCH] - add race condition ttl into readme doc --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3d038c3..f5ec9e2 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ CachedResource accepts the following options: * `:enabled` Default: `true` * `:ttl` The time in seconds until the cache should expire. Default: `604800` +* `:race_condition_ttl` The race condition ttl, to prevent `dog pile effect(https://en.wikipedia.org/wiki/Cache_stampede)` or `cache stampede(https://en.wikipedia.org/wiki/Cache_stampede)`. Default: 86400 * `:ttl_randomization` Enable ttl randomization. Default: `false` * `:ttl_randomization_scale` A Range from which a random value will be selected to scale the ttl. Default: `1..2` * `:collection_synchronize` Use collections to generate cache entries for individuals. Update the existing cached principal collection when retrieving subsets of the principal collection or individuals. Default: `false`