Skip to content

Commit

Permalink
Merge pull request #774 from bearded/patch-1
Browse files Browse the repository at this point in the history
Corrected default values in README
  • Loading branch information
mperham authored Jun 30, 2021
2 parents c73e52b + 6c3c06f commit 31dabf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ If serving compressed data using nginx's HttpMemcachedModule, set `memcached_gzi

**keepalive**: Boolean. If true, Dalli will enable keep-alive for socket connections. Default is true.

**socket_timeout**: Timeout for all socket operations (connect, read, write). Default is 0.5.
**socket_timeout**: Timeout for all socket operations (connect, read, write). Default is 1.

**socket_max_failures**: When a socket operation fails after socket_timeout, the same operation is retried. This is to not immediately mark a server down when there's a very slight network problem. Default is 2.

**socket_failure_delay**: Before retrying a socket operation, the process sleeps for this amount of time. Default is 0.01. Set to nil for no delay.
**socket_failure_delay**: Before retrying a socket operation, the process sleeps for this amount of time. Default is 0.1. Set to nil for no delay.

**down_retry_delay**: When a server has been marked down due to many failures, the server will be checked again for being alive only after this amount of time. Don't set this value too low, otherwise each request which tries the failed server might hang for the maximum **socket_timeout**. Default is 60 seconds.
**down_retry_delay**: When a server has been marked down due to many failures, the server will be checked again for being alive only after this amount of time. Don't set this value too low, otherwise each request which tries the failed server might hang for the maximum **socket_timeout**. Default is 30 seconds.

**value_max_bytes**: The maximum size of a value in memcached. Defaults to 1MB, this can be increased with memcached's -I parameter. You must also configure Dalli to allow the larger size here.

Expand Down

0 comments on commit 31dabf1

Please sign in to comment.