Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hustleer opened this issue Mar 13, 2021 · 1 comment

Comments

@hustleer
Copy link

No description provided.

@dwighthubbard
Copy link
Contributor

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()
[]
>>>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants