Upgrade to Pro — share decks privately, control downloads, hide ads and more …

birdisle: an in-process redis for unit testing by Bruce Merry

Pycon ZA
October 12, 2018

birdisle: an in-process redis for unit testing by Bruce Merry

A Lightning Talk at PyConZA 2018

Pycon ZA

October 12, 2018
Tweet

More Decks by Pycon ZA

Other Decks in Programming

Transcript

  1. birdisle birdisle An in-process redis for unit testing An in-process

    redis for unit testing
  2. In [1]: import redis r = redis.StrictRedis('localhost') r.set('hello', 'world') r.get('hello')

    Out[1]: b'world'
  3. Problems Problems Redis is not friendly to embedding in a

    process. It has lots of global state installs signal handlers changes rlimits changes global locale settings forks does logging exits without freeing any resources
  4. In [2]: import birdisle.redis b = birdisle.redis.StrictRedis() b.set('hello', 'world') b.get('hello')

    Out[2]: b'world'