Skip to content

Commit 644fdcb

Browse files
author
Jon Wayne Parrott
authored
Simplify the memcache sample (#838)
1 parent 560d316 commit 644fdcb

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

appengine/flexible/memcache/app.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ runtime_config:
77

88
# [START env_variables]
99
env_variables:
10-
# If you are using the App Engine Memcache service (currently in alpha),
11-
# uncomment this section and comment out the other Memcache variables.
12-
# USE_GAE_MEMCACHE: 1
1310
MEMCACHE_SERVER: your-memcache-server
14-
# If you are using a Memcached server with SASL authentiation enabled,
15-
# fill in these values with your username and password.
16-
MEMCACHE_USERNAME: your-memcache-username
17-
MEMCACHE_PASSWORD: your-memcache-password
11+
# If you are using a third-party or self-hosted Memcached server with SASL
12+
# authentiation enabled, uncomment and fill in these values with your
13+
# username and password.
14+
# MEMCACHE_USERNAME: your-memcache-username
15+
# MEMCACHE_PASSWORD: your-memcache-password
1816
# [END env_variables]

appengine/flexible/memcache/main.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,7 @@
2323

2424
# [START client]
2525
# Environment variables are defined in app.yaml.
26-
# Note: USE_GAE_MEMCACHE is in whitelist-only alpha. See README.md
27-
if os.environ.get('USE_GAE_MEMCACHE'):
28-
MEMCACHE_SERVER = ':'.join([
29-
os.environ.get('GAE_MEMCACHE_HOST', 'localhost'),
30-
os.environ.get('GAE_MEMCACHE_PORT', '11211')])
31-
else:
32-
MEMCACHE_SERVER = os.environ.get('MEMCACHE_SERVER', 'localhost:11211')
33-
26+
MEMCACHE_SERVER = os.environ.get('MEMCACHE_SERVER', 'localhost:11211')
3427
MEMCACHE_USERNAME = os.environ.get('MEMCACHE_USERNAME')
3528
MEMCACHE_PASSWORD = os.environ.get('MEMCACHE_PASSWORD')
3629

0 commit comments

Comments
 (0)