Permalink
Browse files

this is really what i want

  • Loading branch information...
1 parent 0cbf8a5 commit 04063c2d69c6a31fabd3bbcdc949f30afd0371c9 @joshbuddy committed Apr 22, 2010
Showing with 5 additions and 2 deletions.
  1. +5 −2 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)

0 comments on commit 04063c2

Please sign in to comment.