skip to navigation
skip to content

miniredis 0.1

A lightweight 20-lines redis client

Lightweight redis client in python

Inspired by https://github.com/stulentsev/miniredis-ruby

Usage:

import miniredis

cli = miniredis.MiniRedis() # host/port can be set here

cli.set(‘a’, 1) cli.get(‘a’)

cli.sadd(‘b’, 1, 2, 3) cli.smembers(‘b’)