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

Add command to delete a single key #2

Merged
merged 2 commits into from
May 11, 2022
Merged

Add command to delete a single key #2

merged 2 commits into from
May 11, 2022

Conversation

TheTechmage
Copy link
Collaborator

No description provided.

Signed-off-by: Colton Wolkins (Indicio work address) <colton@indicio.tech>
Signed-off-by: Colton Wolkins (Indicio work address) <colton@indicio.tech>
#TODO: clear redis cache given a key
pass
keysDeleted = await self.redis.delete(f"ACA-Py:{key}")
assert keysDeleted == 1
Copy link
Collaborator

Choose a reason for hiding this comment

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

I like the assertion. we can add error reporting too.

Copy link
Contributor

Choose a reason for hiding this comment

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

The assertion might not be true in the case that the key has expired.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The assertion was eventually removed partially for that reason

@TheTechmage TheTechmage merged commit d14e89b into main May 11, 2022
@TheTechmage TheTechmage deleted the feature/clear branch May 11, 2022 14:58
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.

3 participants