You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,9 +49,17 @@ def create_app():
49
49
return app
50
50
```
51
51
52
+
The `FlaskRedis` client here will pass its keyword arguments
53
+
to the [`Redis` class](https://redis-py.readthedocs.io/en/latest/#redis.Redis)
54
+
from the [`redis-py`](https://github.com/andymccurdy/redis-py) library,
55
+
so all parameters from the `Redis` documentation page will work here as well
56
+
— such as `socket_timeout` and `encoding`.
57
+
52
58
### Accessing Redis
53
59
54
-
The redis client you created above from `FlaskRedis` acts just like a regular `Redis` instance from the [`redis-py`](https://github.com/andymccurdy/redis-py) library:
60
+
Access is done by using `FlaskRedis` as if it was a
0 commit comments