Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
because the current implementation of
storage.read()
orstorage.save()
do not work well when they run simultaneously i moved the_redis
from storage class toredis
.now the entire redis class is available within the storage class.
furthermore
storage.delete()
is now a thing.i have a command that fetches content from a website. this takes time.
to make sure a user never receives the same post twice i used to:
if the user runs the same command twice in a row it might happen that both coroutines read the same data and only the last one is actually saved.
now this is possible:
ill close #35 in favor of this PR.
does not: fixes #29typo: does not fix 29