Skip to content

Commit

Permalink
Link to memcached issue to help clarify a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanahsmith committed Jul 10, 2019
1 parent 866cf7a commit b4ac8bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/identity_cache/cache_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ def fallback_key_expiration_options(fill_lock_duration)
# the cache store round down with `to_i`
expires_in = expires_in.ceil

# memcached TTL only gets part of the first second, so increase TTL by 1 to compensate
# memcached TTL only gets part of the first second (https://github.com/memcached/memcached/issues/307),
# so increase TTL by 1 to compensate
expires_in += 1

{ expires_in: expires_in }
Expand Down

0 comments on commit b4ac8bb

Please sign in to comment.