Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

this is really what i want

  • Loading branch information...
commit 04063c2d69c6a31fabd3bbcdc949f30afd0371c9 1 parent 0cbf8a5
@joshbuddy authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/tokyo_cache_cow/server.rb
View
7 lib/tokyo_cache_cow/server.rb
@@ -184,9 +184,12 @@ def receive_data(data)
key.slice!(0,special_match_char.size)
@cache.delete_match(key)
send_data(DeletedReply)
- else
- send_data @cache.delete(key, :expires => timeout || 0) ?
+ elsif timeout == 0
+ send_data @cache.delete(key) ?
DeletedReply : NotDeletedReply
+ else
+ send_data(@cache.delete(key, :expires => timeout) ?
+ DeletedReply : NotDeletedReply)
end
when 'delete_match'
DeleteMatchCommand.match(args)
Please sign in to comment.
Something went wrong with that request. Please try again.