Skip to content
This repository was archived by the owner on Aug 26, 2021. It is now read-only.

Commit d691e2b

Browse files
committed
Merges Memcachier support via @petermelias
2 parents fb1a96d + c9b75d0 commit d691e2b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

flask_heroku.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,8 @@ def init_app(self, app):
7878
cloudant_uri = environ.get('CLOUDANT_URL')
7979
if cloudant_uri:
8080
app.config.setdefault('COUCHDB_SERVER', cloudant_uri)
81+
82+
# Memcachier
83+
app.config.setdefault('CACHE_MEMCACHED_SERVERS', environ.get('MEMCACHIER_SERVERS'))
84+
app.config.setdefault('CACHE_MEMCACHED_USERNAME', environ.get('MEMCACHIER_USERNAME'))
85+
app.config.setdefault('CACHE_MEMCACHED_PASSWORD', environ.get('MEMCACHIER_PASSWORD'))

0 commit comments

Comments
 (0)