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

Set up client and server's Redis instances #8

Merged
merged 6 commits into from
Feb 29, 2024
Merged

Set up client and server's Redis instances #8

merged 6 commits into from
Feb 29, 2024

Conversation

lotif
Copy link
Collaborator

@lotif lotif commented Feb 22, 2024

PR Type

Feature

Short Description

Clickup Ticket(s): https://app.clickup.com/t/8687c8dhz

Adding instructions to start redis and poetry dependency. Tested with the following commands in python shell:

(venv) marcelolotif@VI-FM46N1XVYX FLorist % python
Python 3.9.6 (default, Nov 10 2023, 13:38:27) 
[Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import redis
>>> server_conn = redis.Redis(host="localhost", port=6379)
>>> test_server_dict = {"test":"server"}
>>> server_conn.hset("server_dict", mapping=test_server_dict)
1
>>> server_conn.hgetall("server_dict")
{b'test': b'server'}
>>> client_conn = redis.Redis(host="localhost", port=6380)
>>> test_client_dict = {"test":"client"}
>>> client_conn.hset("client_dict", mapping=test_client_dict)
1
>>> client_conn.hgetall("client_dict")
{b'test': b'client'}

Tests Added

NA

README.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@jewelltaylor jewelltaylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than a small request for clarification, everything looks good and runs on my computer! I will approve but check back to see your comments regarding the documentation to better my understanding of Redis' role

@lotif lotif merged commit 063789c into main Feb 29, 2024
4 checks passed
@lotif lotif deleted the add-redis branch February 29, 2024 22:10
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

Successfully merging this pull request may close these issues.

2 participants