Skip to content

Commit ced700f

Browse files
committed
Reuse memcached code for gaememcached backend
1 parent cafdef2 commit ced700f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

flask_caching/backends/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,7 @@ def memcached(app, config, args, kwargs):
136136

137137

138138
def gaememcached(app, config, args, kwargs):
139-
args.append(config["CACHE_MEMCACHED_SERVERS"])
140-
kwargs.update(dict(key_prefix=config["CACHE_KEY_PREFIX"]))
141-
return MemcachedCache(*args, **kwargs)
139+
return memcached(app, config, args, kwargs)
142140

143141

144142
def saslmemcached(app, config, args, kwargs):

0 commit comments

Comments
 (0)