Skip to content

Commit ce8ca15

Browse files
committed
- add race condition ttl into readme doc
1 parent 3c0a999 commit ce8ca15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ CachedResource accepts the following options:
3636

3737
* `:enabled` Default: `true`
3838
* `:ttl` The time in seconds until the cache should expire. Default: `604800`
39+
* `: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
3940
* `:ttl_randomization` Enable ttl randomization. Default: `false`
4041
* `:ttl_randomization_scale` A Range from which a random value will be selected to scale the ttl. Default: `1..2`
4142
* `: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`

0 commit comments

Comments
 (0)