An oslo.config enabled dogpile.cache.
Go to file
Morgan Fainberg 1d6d08f491
Pass `flush_on_reconnect` to memcache pooled backend
If a memcache server disappears and then reconnects when multiple memcache
servers are used (specific to the python-memcached based backends) it is
possible that the server will contain stale data. The default is now to
supply the ``flush_on_reconnect`` optional argument to the backend. This
means that when the service connects to a memcache server, it will flush
all cached data in the server. The pooled backend is more likely to
run into issues with this as it does not explicitly use a thread.local
for the client. The non-pooled backend was not touched, it is not
the recommended production use-case.

See the help from python-memcached:

    @param flush_on_reconnect: optional flag which prevents a
	scenario that can cause stale data to be read: If there's more
	than one memcached server and the connection to one is
	interrupted, keys that mapped to that server will get
	reassigned to another. If the first server comes back, those
	keys will map to it again. If it still has its data, get()s
	can read stale data that was overwritten on another
	server. This flag is off by default for backwards
	compatibility.

Change-Id: I3e335261f749ad065e8abe972f4ac476d334e6b3
closes-bug: #1819957
(cherry picked from commit 1192f185a5)
Signed-off-by: Matthew Thode <mthode@mthode.org>
2019-04-29 17:57:38 -05:00
doc Avoid use of autodoc_tree_index_modules 2018-04-12 16:13:14 -04:00
oslo_cache Pass `flush_on_reconnect` to memcache pooled backend 2019-04-29 17:57:38 -05:00
releasenotes Pass `flush_on_reconnect` to memcache pooled backend 2019-04-29 17:57:38 -05:00
tools Don't let tox_install.sh error if there is nothing to do 2018-05-01 15:48:53 +00:00
.coveragerc Change ignore-errors to ignore_errors 2015-09-21 14:42:30 +00:00
.gitignore Switch to stestr 2018-08-01 19:24:36 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:29:50 +00:00
.mailmap Initial commit from oslo cookiecutter template 2015-04-15 11:22:01 -05:00
.stestr.conf Switch to stestr 2018-08-01 19:24:36 +00:00
.zuul.yaml import zuul job settings from project-config 2018-08-13 11:57:45 -04:00
CONTRIBUTING.rst Optimize the link address 2017-04-08 22:33:53 +08:00
HACKING.rst update the doc URLs 2017-07-11 21:51:41 +08:00
LICENSE Initial commit from oslo cookiecutter template 2015-04-15 11:22:01 -05:00
README.rst Trivial: Update pypi url to new url 2018-04-20 17:08:33 +07:00
babel.cfg Initial commit from oslo cookiecutter template 2015-04-15 11:22:01 -05:00
lower-constraints.txt Switch to stestr 2018-08-01 19:24:36 +00:00
requirements.txt Updated from global requirements 2018-03-15 07:46:59 +00:00
setup.cfg Avoid use of autodoc_tree_index_modules 2018-04-12 16:13:14 -04:00
setup.py Updated from global requirements 2017-03-03 00:02:46 +00:00
test-requirements.txt Switch to stestr 2018-08-01 19:24:36 +00:00
tox.ini Switch to stestr 2018-08-01 19:24:36 +00:00

README.rst

Team and repository tags

image

oslo.cache

Latest Version

Downloads

oslo.cache aims to provide a generic caching mechanism for OpenStack projects by wrapping the dogpile.cache library. The dogpile.cache library provides support memoization, key value storage and interfaces to common caching backends such as Memcached.