{"library":"redislite","title":"redislite","description":"redislite embeds a Redis server into a Python package, allowing you to run Redis without a separate server process. Current version 6.2.912183 supports Python >=3.8.0 and is actively maintained. It provides a drop-in replacement for redis-py's StrictRedis and Redis classes.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install redislite"],"cli":null},"imports":["from redislite import StrictRedis","from redislite import Redis"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from redislite import StrictRedis\n\n# Creates a Redis instance with an embedded server; data stored in a temp file\nr = StrictRedis()\nr.set('foo', 'bar')\nprint(r.get('foo'))  # b'bar'\n\n# Custom path for persistence\nr2 = StrictRedis('mydata.db')\nr2.set('key', 'value')","lang":"python","description":"Create a Redis client with an embedded server. The first argument is an optional path to a database file.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}