We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using the redis cachecontrol, I get an error when the max-age header is set.
expires = 900 def set(self, key, value, expires=None): if not expires: self.conn.set(key, value) else: > expires = expires - datetime.utcnow() E TypeError: unsupported operand type(s) for -: 'int' and 'datetime.datetime' pyenv/lib/python3.6/site-packages/cachecontrol/caches/redis_cache.py:23: TypeError
I believe this is because we set expires_time to an int here instead of a datetime.
expires_time
int
datetime
The text was updated successfully, but these errors were encountered:
@recursiveMake I ran into the same issue. #269 is one potential solution...
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
When using the redis cachecontrol, I get an error when the max-age header is set.
I believe this is because we set
expires_time
to anint
here instead of adatetime
.The text was updated successfully, but these errors were encountered: