Code Monkey home page Code Monkey logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 27, 2024
The info return code -97 states that there has been a protocol error.

I guess it is because you're talking to a Redis server of version "1.2.3". 
Currently 
Credis only support the commands supported by Redis version 1.02.

Perhaps Credis should tell this in a better way than just returning an error?

Original comment by [email protected] on 12 Mar 2010 at 6:25

  • Changed state: Accepted

from credis.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 27, 2024
I've modified the latest trunk version of credis to work with the most recent 
redis server protocol (I'm using 1.3 
for testing, but I think it would also work with 1.2.3).  I haven't added 
support for any new commands yet, but 
the existing credis-test program now runs successfully.

One way to detect which protocol to use would be to issue an INFO command as 
part of the credis_connect() 
function to find out the version of the server we are talking to.  You only 
need to parse and check the 
redis_version key.  We could then add version information to the REDIS struct 
so that other api functions (such as 
credis_keys() and cr_push()) could dynamically check it and send the 
appropriate protocol.

Original comment by [email protected] on 19 May 2010 at 1:04

from credis.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 27, 2024
I posted my renegade version of credis (see previous comment) to my github 
account at:
http://github.com/itfrombit/credis
in case anyone wants to check it out.  This includes the version check in the 
credis_connect() call, so it should 
fall back to the 1.0.2 protocol if it detects an older server.

I can also post an svn diff patch if you are interested.


Original comment by [email protected] on 19 May 2010 at 2:58

from credis.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 27, 2024
Cool. I briefly looked at your changes. I don't think a patch is necessary. 
I'll add 
this to the trunk. Thanks.

Original comment by [email protected] on 19 May 2010 at 8:11

from credis.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 27, 2024
Fixed in revision 30. Verified on Redis 1.02 and 1.2.6.

Actually, the working copy of Redis is not compatible with 1.2.6. Therefore I 
took 
another approach, letting credis parse as many fields as it knows, hence 
decoupling the 
strict dependency to the Redis server allowing for a more flexible 
compatibility(?).

Original comment by [email protected] on 19 May 2010 at 8:40

  • Changed state: Fixed

from credis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.