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

CacheKey should derive from str #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

idanz
Copy link

@idanz idanz commented May 9, 2013

I am using a redis-shard as a replacement for the redis client.
The CacheKey failed this replacement since there are assertions that the key derives from basestring.
since this check makes sense to me, I thought it would be better (and require less code), to make CacheKey derive from str, so no proxy code is needed and it works with other clients.

I added an explicit test for binary keys just to make sure that is not harmed.

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.

1 participant