How to use the redislite.patch function in redislite

To help you get started, we’ve selected a few redislite examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github yahoo / redislite / tests / test_patch.py View on Github external
def test_redislite_patch_redis_Redis(self):
        redislite.patch.patch_redis_Redis()
        r = redis.Redis()
        self._log_redis_pid(r)
        self.assertIsInstance(r.pid, int)    # Should have a redislite pid
        redislite.patch.unpatch_redis_Redis()
github yahoo / redislite / tests / test_patch.py View on Github external
def test_redislite_patch_redis_Redis(self):
        redislite.patch.patch_redis_Redis()
        r = redis.Redis()
        self._log_redis_pid(r)
        self.assertIsInstance(r.pid, int)    # Should have a redislite pid
        redislite.patch.unpatch_redis_Redis()