--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
I believe what you're missing here is that this isn't a configuration issue but rather something that needs to be implemented by your application's logic. Here's a short snippet in pseudo python that demonstrates how you can cache calls to your database:
def get_results(sql):
hash = md5.new(sql).digest()
result = redis.get(hash)
if result is None:
result = db.execute(sql)
redis.set(hash, result)
return result
Of course, you may want to tweak and change this pattern to suit your own needs.
Cheers,
Itamar
--