{"library":"mockredispy","title":"mockredispy","description":"mockredispy is a Python library that provides a mock implementation of redis-py, useful for testing code that interacts with Redis without connecting to a real Redis server. The current version is 2.9.3, with periodic releases. It supports most redis-py commands but has limitations.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install mockredispy"],"cli":null},"imports":["from mockredis import MockRedis","from mockredis import mock_redis_client"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from mockredis import MockRedis\n\n# Create a mock Redis client\nr = MockRedis()\nr.set('key', 'value')\nprint(r.get('key'))  # b'value'","lang":"python","description":"Basic usage: create a MockRedis instance and use it like a real redis client.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}