Skip to content
Commits on Sep 19, 2010
  1. @jlavallee
  2. @jlavallee

    ignore dist files

    jlavallee committed
  3. @jlavallee
  4. @jlavallee

    added .gitignore

    jlavallee committed
  5. @jlavallee

    made POD coverage tests run conditionally

    jlavallee committed
    Environment var tested for is $RELEASE_TESTING
    see http://use.perl.org/~Alias/journal/36128
  6. @jlavallee
Commits on Aug 28, 2010
Commits on Aug 7, 2010
  1. @melo

    Tidy up test files

    melo committed
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  2. @melo

    Add support for nested multi-bulk responses:

    melo committed
    Useful for future MULTI/EXEC implementation
    
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  3. @melo

    Fix __read_responses() with multi-bulk replies containing $-1 responses

    melo committed
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  4. @melo

    Added support for Redis PubSub:

    melo committed
     * support commands SUBSCRIBE, UNSUBSCRIBE, PSUBSCRIBE, and PUNSUBSCRIBE:
       * PUBLISH is a regular Redis command, already supported.
     * last argument of subscription changes commands must be a callback, a
       coderef:
       * for each message, the callback will be called with three parameters:
         * the messages data;
         * the topic to whom the message was sent;
         * the subscription that catched this message.
     * you can subscribe to multiple topics or topic matches with the same
       callback: messages to any of those topics will invoke the callback;
     * you can call p?subscribe() multiple times with the same topics or
       topic matching rules, and with different callbacks:
       * we will manage a single Redis subscription, and call all the
         callbacks per message received.
     * p?unsubscribe() calls require the original callback, to remove the
       correct subscription.
    
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  5. @melo

    Fix __read_response() call in keys(): used wrong command

    melo committed
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  6. @melo

    On quit(), remove our internal buffer even if we can't close the socket

    melo committed
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  7. @melo

    Allow size of reads from socket to be tuned

    melo committed
    If you have big keys, values, or big responses, increasing read_size
    will improve your performance, by reducing the number of system calls we
    will make to read them.
    
    Defaults to 8Kb
    
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  8. @melo

    Fix: __is_valid_command() must deal with both upper and lower-case cmds

    melo committed
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  9. @melo

    Added __can_read_sock(): attempts to read from Redis server, non-bloc…

    melo committed
    …king
    
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
Commits on Aug 5, 2010
  1. @melo

    Run perltidy on the Redis.pm class

    melo committed
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  2. @melo

    Add initial support for subscriber mode:

    melo committed
    When we use any of SUBSCRIBE commands, we need to restrict the
    commands we can use after. Only other SUBSCRIBE, or UNSUBSCRIBE commands
    are valid.
    
    We added a "mode", is_subscriber, that default to 0 and will be true after
    we subscribe something. When is_subscriber is active, invalid commands
    will result in an exception.
    
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  3. @melo

    Cleanup comments

    melo committed
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  4. @melo

    Rewrote response reading code, moved INFO and KEYS out of AUTOLOAD

    melo committed
     * response reading code uses less syscalls with big values: more speed;
     * multi-bulk response fixed: supports mixed items in the response,
       like $ and : in the same response - this happens with SUBSCRIBE
       messages
     * INFO and KEYS have their own methods now: no more if's for special
       cases in AUTOLOAD.
    
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  5. @melo

    Added tests with big values

    melo committed
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
Commits on Aug 4, 2010
  1. @melo

    Move QUIT command out of the common case

    melo committed
    Make sure we get rid of the IO::Socket::INET object on QUIT.
    
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  2. @melo

    Extract send command logic from AUTOLOAD; make it more robust

    melo committed
    We deal with partial writes now. Usually you won't notice the need until
    you hit a very active client against a very loaded server.
    
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  3. @melo

    Promote all die's to confess(): more usefull information in case of e…

    melo committed
    …rrors
    
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  4. @melo

    Make debug prettier

    melo committed
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  5. @melo

    Add support for Redis 2.x, and other tweaks:

    melo committed
     * send commands using the multi-bulk protocol: allows you to use binary
       keys and values;
     * keep the default of utf8 encoding, but allow for other encodings,
       including binary;
     * remove old bulk_command table: no longer used, with the new multi-bulk
       protocol for sending commands;
     * remove 'use bytes', no longer needed with the new encoding algorithm;
     * adjust the 'KEYS' command to also support multi-bulk responses on
       newer servers;
     * make sure bulk responses of 0 size return an empty string;
     * perl-ish multi-bulk response.
    
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  6. @melo

    Make sure setting/getting an empty string works

    melo committed
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  7. @melo

    Make sure you pass each SORT argument separate

    melo committed
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  8. @melo

    Redis GET with undef is a protocol error for 2.x and beyond

    melo committed
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
Commits on Apr 30, 2010
  1. add scripts/* to MANIFEST

    U-LIFEBOOK\Administrator committed with
  2. add lib/Redis/* to MANIFEST so that CPAN distro contains relevant files

    U-LIFEBOOK\Administrator committed with
Commits on Apr 21, 2010
  1. return undef makes @list = ( undef ), which is sad

    sunnavy committed with
Commits on Mar 19, 2010
  1. notice utf-8 fix

    committed
    git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@72 447b33ff-793d-4489-8442-9bea7d161be5
  2. added encoding notice

    committed
    git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@71 447b33ff-793d-4489-8442-9bea7d161be5
Commits on Mar 17, 2010
  1. use Encode::_utf8_on to mark bytes from Redis socket as utf-8 chars

    committed
    git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@70 447b33ff-793d-4489-8442-9bea7d161be5
Something went wrong with that request. Please try again.