File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
examples/database_blacklist Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11# Blacklist with a database
2- Database are a common choice for storing blacklist tokens. It has many
2+ A database is a common choice for storing blacklisted tokens. It has many
33benefits over an in memory store, like redis. The most obvious benefit of
44using a database is data consistency. If you add something to the database,
55you don't need to worry about it vanishing in an event like a power outage.
@@ -15,9 +15,9 @@ Databases also have some cons compared to an in memory store, namely that
1515they are potentially slower, and they may grow huge over time and need to be
1616manually pruned back down.
1717
18- This project contains example code for you you might implement a blacklist
18+ This project contains example code for you to implement a blacklist
1919using a database, with some more complex features that might benefit your
20- application. For ease of use, we will use flask-sqlalchey with an in
20+ application. For ease of use, we will use flask-sqlalchemy with an in
2121memory data store, but in production I would highly recommend using postgres.
2222Please note that this code is only an example, and although I do my best to
23- insure its quality, it has not been thoroughly tested.
23+ ensure its quality, it has not been thoroughly tested.
You can’t perform that action at this time.
0 commit comments