{"library":"redis","install":[{"cmd":"pip install redis","imports":["import redis\n\nr = redis.Redis(\n    host='localhost',\n    port=6379,\n    db=0,\n    decode_responses=True  # returns str not bytes\n)\nr.set('key', 'value')\nprint(r.get('key'))  # 'value' not b'value'","import redis.asyncio as aioredis\nimport asyncio\n\nasync def main():\n    r = aioredis.Redis(\n        host='localhost',\n        port=6379,\n        decode_responses=True\n    )\n    await r.set('key', 'value')\n    print(await r.get('key'))\n    await r.aclose()\n\nasyncio.run(main())","import redis\n\n# Standard Redis URL\nr = redis.from_url('redis://localhost:6379/0', decode_responses=True)\n\n# Redis with password\nr = redis.from_url('redis://:password@localhost:6379/0')\n\n# SSL/TLS (Upstash, Redis Cloud)\nr = redis.from_url('rediss://user:pass@host:6380/0')"]},{"cmd":"pip install 'redis[hiredis]'","imports":[]}]}