Skip to content

Commit

Permalink
Merge pull request #583 from petergoldstein/bugfix/minor_errors_in_582
Browse files Browse the repository at this point in the history
Fix a couple of minor errors in my last PR
  • Loading branch information
petergoldstein committed Dec 13, 2015
2 parents c749402 + dc887c5 commit cc4019e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/dalli/client.rb
Expand Up @@ -108,7 +108,6 @@ def fetch(key, ttl=nil, options=nil)
# - false if the value was changed by someone else.
# - true if the value was successfully updated.
def cas(key, ttl=nil, options=nil)
ttl = ttl_or_default(ttl)
(value, cas) = perform(:cas, key)
value = (!value || value == 'Not found') ? nil : value
if value
Expand Down
2 changes: 1 addition & 1 deletion lib/dalli/server.rb
Expand Up @@ -486,7 +486,7 @@ def guard_max_value(key, value)
def sanitize_ttl(ttl)
ttl_as_i = ttl.to_i
return ttl_as_i if ttl_as_i <= MAX_ACCEPTABLE_EXPIRATION_INTERVAL
Dalli.logger.debug "Expiration interval (ttl_as_i) too long for Memcached, converting to an expiration timestamp"
Dalli.logger.debug "Expiration interval (#{ttl_as_i}) too long for Memcached, converting to an expiration timestamp"
Time.now.to_i + ttl_as_i
end

Expand Down

0 comments on commit cc4019e

Please sign in to comment.