redislite icon indicating copy to clipboard operation
redislite copied to clipboard

How to setup redislite in specific port like in redis it would be:redis-server --port 6379

Open hustleer opened this issue 3 years ago • 1 comments

hustleer avatar Mar 13 '21 11:03 hustleer

You can specify the port with the serverconfig argument.

>>> import redis
>>> import redislite
>>> r=redislite.Redis(serverconfig={'port': '8002'})
>>> r2 = redis.Redis(port=8002)
>>> r2.keys()
[]
>>>

dwighthubbard avatar Jun 28 '22 19:06 dwighthubbard