Just a few days after posting Redis and Ruby, we are not featuring a two article series on Redis and Python.
The ☞ first part will walk you through getting Redis installed, obtaining a Python library for Redis and working with the Redis data types: string, integer, lists, sets, ordered sets. As a side note, recently Redis has also added support for hashes.
The ☞ second article introduces you to a possible solution to handling relationships inside Redis:
We have to cheat in Redis’s flat name space to make relations in our data. Redis isn’t going to be aware of these relations and unlike RDBMS (like MySQL), Redis does nothing to help us out. No index’s, no nifty SQL syntax with WHERE or JOIN to do the work for us. We have to handle all of the relational logic in application code, which in turn means you (the developers) have to do extra documentation explaining just how everything fits together in redis or you are going to lose your data.