Use redis with password in dev

This commit is contained in:
Mouse Reeve
2022-01-05 08:27:39 -08:00
parent 629140cad4
commit bebb2c167e
5 changed files with 28 additions and 14 deletions

View File

@ -5,10 +5,12 @@ import redis
from bookwyrm import settings
r = redis.Redis(
host=settings.REDIS_ACTIVITY_HOST, port=settings.REDIS_ACTIVITY_PORT, db=0
host=settings.REDIS_ACTIVITY_HOST,
port=settings.REDIS_ACTIVITY_PORT,
password=settings.REDIS_ACTIVITY_PASSWORD,
db=0,
)
class RedisStore(ABC):
"""sets of ranked, related objects, like statuses for a user's feed"""