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 decrby to redis_client #275

Merged
merged 3 commits into from
Feb 14, 2024
Merged

Add decrby to redis_client #275

merged 3 commits into from
Feb 14, 2024

Conversation

whabanks
Copy link
Contributor

@whabanks whabanks commented Feb 12, 2024

Summary | Résumé

  • Added a decrby method to the redis_client
  • Added a simple decorator for functions that need to be behind a feature flag

This API PR depends on these changes.

- Added a simple decorator for functions that are behind a feature flag
Copy link
Member

@andrewleith andrewleith left a comment

Choose a reason for hiding this comment

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

LGTM!

from functools import wraps


def requires_feature(flag):
Copy link
Member

Choose a reason for hiding this comment

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

Very cool!

@whabanks whabanks merged commit e86daba into main Feb 14, 2024
4 checks passed
@whabanks whabanks deleted the task/add-redis-decrby branch February 14, 2024 18:31
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