Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions examples/database_blacklist/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Blacklist with a database
Database are a common choice for storing blacklist tokens. It has many
A database is a common choice for storing blacklisted tokens. It has many
benefits over an in memory store, like redis. The most obvious benefit of
using a database is data consistency. If you add something to the database,
you don't need to worry about it vanishing in an event like a power outage.
Expand All @@ -15,9 +15,9 @@ Databases also have some cons compared to an in memory store, namely that
they are potentially slower, and they may grow huge over time and need to be
manually pruned back down.

This project contains example code for you you might implement a blacklist
This project contains example code for you to implement a blacklist
using a database, with some more complex features that might benefit your
application. For ease of use, we will use flask-sqlalchey with an in
application. For ease of use, we will use flask-sqlalchemy with an in
memory data store, but in production I would highly recommend using postgres.
Please note that this code is only an example, and although I do my best to
insure its quality, it has not been thoroughly tested.
ensure its quality, it has not been thoroughly tested.