Permalink
Commits on Feb 2, 2011
  1. @rlotun
Commits on Jan 24, 2011
  1. @rlotun

    Expose hsetnx as a basic method.

    Also expanded the docstrings for the hash commands.
    rlotun committed Jan 24, 2011
  2. @rlotun

    Removed ResponseError check.

    rlotun committed Jan 24, 2011
Commits on Jan 23, 2011
  1. @rlotun

    Pyflakes fixes.

    rlotun committed Jan 23, 2011
  2. @rlotun

    Big change: An error response now errbacks the deferred.

    Previously all ResponseError objects would always fire
    the callback chain of the deferred instead of errbacking -
    this is obviously not consistent and could lead to huge
    problems. This has now been changed so that a Redis
    error response will always errback the waiting deferred.
    
    In addition the unit tests have been updated to reflect
    this. In most cases the tests have been changed to explicity
    use `failUnlessFailure`, and in some cases repetitive checks
    have been removed.
    rlotun committed Jan 23, 2011
Commits on Jan 19, 2011
  1. Merge branch 'master' of http://github.com/rlotun/txRedis

    Conflicts:
    	txredis/protocol.py
    Rob Kinninmont committed Jan 19, 2011
  2. made redis protocol a new-style class

    since, for the time being at least, we have client code which depends
    on a metaclass of a redis protocol subclass for some behaviour, it's
    necessary to have the base class in question be a new style class.
    
    this will probably go away in an upcoming refactoring rationalisation
    Rob Kinninmont committed Jan 19, 2011
  3. test fixes; float coercion for scores; getrange

    rename substr to 'getrange' (per redis commands) and makes substr an
    alias thereof
    
    further to the removal of implicit type coercion of return values
    (inappropriate since redis only stores strings) this fixes the methods
    which return scores for sorted sets, since scores are always float
    
    fixes the unit tests to match the non-type-coecing behaviour
    Rob Kinninmont committed Jan 19, 2011
Commits on Jan 17, 2011
  1. remove type coercion in return values

    bulkDataReceived was trying to coerce things which could be construed as
    floats and ints into those types, rather than returning the actual string
    stored in redis.
    
    this is backwards incompatible with anytyhing that relied on the old
    behaviour, but is 'correct' in that 'get' returns a string, per redis
    Rob Kinninmont committed Jan 17, 2011
  2. @rlotun

    Don't do any type coercion.

    You should *only* get back what you store. Previously storing an
    intable string like '42' would give you the int 42 after a corresponding
    get. This is incorrect.
    rlotun committed Jan 17, 2011
  3. expose a send(command, *args) method

    this wraps both the command marshalling to redis, and the getResponse,
    which most of the wrapper methods are already doing for each command,
    but allowing the client code to specify the redis command to send.
    
    this is potentially useful for commands not implemented on txredis
    yet, but moreover is what's needed in the case that a deployment is
    using the 'rename-command' redis config directive to 'hide' certain
    commands - the hidden names are deployment specific and not generally
    appropriate for txredis methods
    Rob Kinninmont committed Jan 17, 2011
  4. added hget_value, hdel methods

    added an hget_value method which does a simple get of a hash field,
    i.e. returning the value of that field, not repacking the value into
    a {key:value} dict as per the extant hget does
    
    also renamed hdelete to hdel to reflect redis command naming, and
    made hdelete an alias for it for txredis backwards compatability
    Rob Kinninmont committed Jan 17, 2011
Commits on Jan 13, 2011
  1. Merge branch 'master' of http://github.com/rlotun/txRedis

    Rob Kinninmont committed Jan 13, 2011
  2. add lpush and rpush methods, to reflect redis

    Rob Kinninmont committed Jan 13, 2011
Commits on Jan 12, 2011
  1. @rlotun

    Bumped version to 2.0

    rlotun committed Jan 12, 2011
  2. @rlotun

    Merge branch 'master' of https://github.com/evilrob666/txRedis into e…

    …vilrob666-master
    rlotun committed Jan 12, 2011
  3. Fixes to use 'unified request protocol'

    The 'unified request protocol', supported since redis 1.2 and standard
    since 2.0, also known as 'multi-bulk' is the appropriate wire protocol
    for a library to use in communicating with redis, since it's binary
    safe, and using it throughout is more consistent than using it in only
    some places.
    
    This patch changes all commands to use the URP
    
    There are some unit test fixes to reflect that protocol change, and
    also deal with a version skew around expiry.
    Rob Kinninmont committed Jan 12, 2011
Commits on Jan 4, 2011
  1. @deldotdr

    Update setup. Bump version

    deldotdr committed Jan 4, 2011
  2. @deldotdr

    Update Readme

    deldotdr committed Jan 4, 2011
Commits on Dec 26, 2010
  1. @ivaxer

    Fixed bug in hget

    ivaxer committed Dec 26, 2010
  2. @ivaxer

    Add hget test (pointer to bug)

    ivaxer committed Dec 26, 2010
Commits on Sep 28, 2010
  1. @rlotun

    Added wrapper for zrevrange

    rlotun committed Sep 28, 2010
Commits on Sep 14, 2010
  1. @rlotun
  2. @rlotun
  3. @rlotun

    Implemented SRANDMEMBER.

    rlotun committed Sep 14, 2010
  4. @rlotun
  5. @rlotun

    Support for SDIFF.

    rlotun committed Sep 14, 2010
  6. @rlotun

    Implemented support for SMOVE.

    rlotun committed Sep 14, 2010
Commits on Sep 13, 2010
  1. @rlotun

    Added support for ZCOUNT.

    rlotun committed Sep 13, 2010
  2. @rlotun
  3. @rlotun
Commits on Aug 31, 2010
  1. @powdahound

    Add support for multi, exec, and discard.

    Also:
     - fix a comment typo in response handling
     - support non-bulk replies when receiving multibulk
    powdahound committed Aug 31, 2010
Commits on Jul 2, 2010
  1. @rlotun

    Pushed up my latest master branch, incorporating all branch updates m…

    …ade so far by powdahound (HipChat) and deldotdr.
    rlotun committed Jul 2, 2010
  2. @rlotun

    Removed auto-decode of str responses to unicode. This behaviour is mo…

    …re correct since Redis is only string aware. Now, if I put a string into redis, I won't get a unicode string out again.
    rlotun committed Jul 2, 2010
  3. @rlotun

    Protocol fix - the length check on the buffer for bulk-replies was of…

    …f. Moved _mb_cmd to the base redis protocol since it's a private method for sending multi-bulk commands. Removed unused import. Small fix to unit test to improve reliability of repeated runs.
    rlotun committed Jul 2, 2010