1. 10 7月, 2014 2 次提交
  2. 27 6月, 2014 1 次提交
  3. 18 6月, 2014 2 次提交
  4. 06 6月, 2014 1 次提交
  5. 13 3月, 2014 1 次提交
  6. 05 3月, 2014 1 次提交
    • M
      Improved bigkeys with progress, pipelining and summary · 69917929
      michael-grunder 提交于
      This commit reworks the redis-cli --bigkeys command to provide more
      information about our progress as well as output summary information
      when we're done.
      
       - We now show an approximate percentage completion as we go
       - Hiredis pipelining is used for TYPE and SIZE retreival
       - A summary of keyspace distribution and overall breakout at the end
      69917929
  7. 25 2月, 2014 7 次提交
  8. 22 1月, 2014 2 次提交
  9. 26 9月, 2013 1 次提交
  10. 04 9月, 2013 1 次提交
  11. 12 7月, 2013 1 次提交
  12. 03 7月, 2013 2 次提交
    • A
      redis-cli: introduced --pipe-timeout. · 3e350126
      antirez 提交于
      When in --pipe mode, after all the data transfer to the server is
      complete, now redis-cli waits at max the specified amount of
      seconds (30 by default, use 0 to wait forever) without receiving any
      reply at all from the server. After this time limit the operation is
      aborted with an error.
      
      That's related to issue #681.
      3e350126
    • A
      redis-cli --pipe: send final ECHO in a safer way. · 24b37992
      antirez 提交于
      If the protocol read from stdin happened to contain grabage (invalid
      random chars), in the previous implementation it was possible to end
      with something like:
      
      dksfjdksjflskfjl*2\r\n$4\r\nECHO....
      
      That is invalid as the *2 should start into a new line. Now we prefix
      the ECHO with a CRLF that has no effects on the server but prevents this
      issues most of the times.
      
      Of course if the offending wrong sequence is something like:
      
      $3248772349\r\n
      
      No one is going to save us as Redis will wait for data in the context of
      a big argument, so this fix does not cover all the cases.
      
      This partially fixes issue #681.
      24b37992
  13. 11 4月, 2013 2 次提交
    • A
      redis-cli: raise error on bad command line switch. · 42ba5d37
      antirez 提交于
      Previously redis-cli never tried to raise an error when an unrecognized
      switch was encountered, as everything after the initial options is to be
      transmitted to the server.
      
      However this is too liberal, as there are no commands starting with "-".
      So the new behavior is to produce an error if there is an unrecognized
      switch starting with "-". This should not break past redis-cli usages
      but should prevent broken options to be silently discarded.
      
      As far the first token not starting with "-" is encountered, all the
      rest is considered to be part of the command, so you cna still use
      strings starting with "-" as values, like in:
      
          redis-cli --port 6380 set foo --my-value
      42ba5d37
    • A
      redis-cli: --latency-history mode implemented. · 0d7b10ee
      antirez 提交于
      0d7b10ee
  14. 25 3月, 2013 1 次提交
    • A
      redis-cli --stat, stolen from redis-tools. · ec18d4bf
      antirez 提交于
      Redis-tools is a connection of tools no longer mantained that was
      intented as a way to economically make sense of Redis in the pre-vmware
      sponsorship era. However there was a nice redis-stat utility, this
      commit imports one of the functionalities of this tool here in redis-cli
      as it seems to be pretty useful.
      
      Usage: redis-cli --stat
      
      The output is similar to vmstat in the format, but with Redis specific
      stuff of course.
      
      From the point of view of the monitored instance, only INFO is used in
      order to grab data.
      ec18d4bf
  15. 12 3月, 2013 1 次提交
  16. 06 3月, 2013 1 次提交
  17. 04 3月, 2013 1 次提交
    • A
      redis-cli: use keepalive socket option. · df3b4920
      antirez 提交于
      This should improve things in two ways:
      
      1) Prevent timeouts caused by the execution of long commands.
      2) Improve detection of real connection errors.
      
      This is mostly effective only on Linux because of the bogus default
      keepalive settings. In Linux we have OS-specific calls to set the
      keepalive interval to reasonable values.
      df3b4920
  18. 22 1月, 2013 1 次提交
  19. 19 1月, 2013 3 次提交
  20. 18 1月, 2013 1 次提交
    • N
      redis-cli --rdb fails if server sends a ping · f2bc198d
      Nathan Parry 提交于
      Redis pings slaves in "pre-synchronization stage" with newlines. (See
      https://github.com/antirez/redis/blob/2.6.9/src/replication.c#L814)
      However, redis-cli does not expect this - it sees the newline as the end
      of the bulk length line, and ends up returning 0 as bulk the length.
      This manifests as the following when running redis-cli:
      
          $ ./src/redis-cli --rdb some_file
          SYNC sent to master, writing 0 bytes to 'some_file'
          Transfer finished with success.
      
      With this commit, we just ignore leading newlines while reading the bulk
      length line.
      
      To reproduce the problem, load enough data into Redis so that the
      preparation of the RDB snapshot takes long enough for a ping to occur
      while redis-cli is waiting for the data.
      f2bc198d
  21. 17 1月, 2013 1 次提交
  22. 20 12月, 2012 1 次提交
  23. 09 11月, 2012 1 次提交
  24. 22 7月, 2012 1 次提交
  25. 13 6月, 2012 1 次提交
    • T
      Standardize punctuation in redis-cli help. · e612508d
      Ted Nyman 提交于
      Right there is a mix of help entries ending with periods or
      without periods. This standardizes the end of command as without
      periods, which seems to be the general custom in most unix tools,
      at least.
      e612508d
  26. 14 5月, 2012 1 次提交
    • A
      Added time.h include in redis-cli. · e67d014d
      antirez 提交于
      redis-cli.c uses the time() function to seed the PRNG, but time.h was
      not included. This was not noticed since sys/time.h is included and was
      enough in most systems (but not correct). With Ubuntu 12.04 GCC
      generates a warning that made us aware of the issue.
      e67d014d
  27. 12 5月, 2012 1 次提交