aboutsummaryrefslogtreecommitdiffstats
path: root/Pipfile
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2020-09-19 21:45:54 +0200
committerGravatar Sebastiaan Zeeff <[email protected]>2020-09-19 22:14:37 +0200
commitfc058490d62fa373e6ebb01392c511027401e72f (patch)
tree1125c6429de34a09082d88703ba12f2d68b120cc /Pipfile
parentMerge pull request #1158 from python-discord/config-update (diff)
Use async-rediscache package for our redis caches
I've migrated our redis caches over to the async-rediscache package that we've recently released (https://git.pydis.com/async-rediscache). The main functionality remains the same, although the package handles some things, like getting the active session, differently internally. The main changes you'll note for our bot are: - We create a RedisSession instance and ensure that it connects before we even create a Bot instance in `__main__.py`. - We are now actually using a connection pool instead of a single connection. - Our Bot subclass now has a new required kwarg: `redis_session`. - Bool values are now properly converted to and from typestrings. In addition, I've made sure that our MockBot passes a MagicMock for the new `redis_session` kwarg when creating a Bot instance for the spec_set. Signed-off-by: Sebastiaan Zeeff <[email protected]>
Diffstat (limited to 'Pipfile')
-rw-r--r--Pipfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Pipfile b/Pipfile
index 6fff2223e..8ab5d230e 100644
--- a/Pipfile
+++ b/Pipfile
@@ -8,12 +8,12 @@ aio-pika = "~=6.1"
aiodns = "~=2.0"
aiohttp = "~=3.5"
aioredis = "~=1.3.1"
+"async-rediscache[fakeredis]" = "~=0.1.2"
beautifulsoup4 = "~=4.9"
colorama = {version = "~=0.4.3",sys_platform = "== 'win32'"}
coloredlogs = "~=14.0"
deepdiff = "~=4.0"
discord.py = "~=1.4.0"
-fakeredis = "~=1.4"
feedparser = "~=5.2"
fuzzywuzzy = "~=0.17"
lxml = "~=4.4"