Skip to content

Commit

Permalink
Add redis global key prefix (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
wetneb authored May 22, 2024
1 parent 14f9fa9 commit 323dac5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editgroups/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from .secret import REDIS_HOST
from .secret import REDIS_PASSWORD
from .secret import REDIS_PORT
from .secret import REDIS_KEY_PREFIX
from .secret import SECRET_KEY
from .secret import SOCIAL_AUTH_MEDIAWIKI_KEY
from .secret import SOCIAL_AUTH_MEDIAWIKI_SECRET
Expand Down Expand Up @@ -216,6 +217,7 @@
REDIS_PORT,
REDIS_DB)
BROKER_URL = 'redis://'+REDIS_URL
BROKER_TRANSPORT_OPTIONS = {'global_keyprefix': REDIS_KEY_PREFIX}
# We also use Redis as result backend.
CELERY_RESULT_BACKEND = BROKER_URL

Expand Down
1 change: 1 addition & 0 deletions editgroups/settings/secret_gh_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
REDIS_PORT = REDIS_REAL_PORT
REDIS_DB = 0
REDIS_PASSWORD = ''
REDIS_KEY_PREFIX = 'editgroups_'


1 change: 1 addition & 0 deletions editgroups/settings/secret_toolforge.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@
REDIS_PORT = 6379
REDIS_DB = 3
REDIS_PASSWORD = ''
REDIS_KEY_PREFIX = 'editgroups_'

0 comments on commit 323dac5

Please sign in to comment.