rel-note and doc for lazy loading of oslo_cache

In continuation of I00e953abb3e835a94353fe458100c96e8e9c095a,
this change adds the release note and documentation.

Related-bug #1737115

Change-Id: I456239842d139074cc38cfd620bb88561bb4d0d7
This commit is contained in:
Mehdi Abaakouk 2017-12-13 11:57:52 +01:00
parent 35fa0e1da1
commit a08bc44e04
2 changed files with 8 additions and 0 deletions

View File

@ -89,6 +89,8 @@ class _MemcacheClientPool(object):
"""An advanced memcached client pool that is eventlet safe."""
def __init__(self, memcache_servers, **kwargs):
# NOTE(sileht): This will import python-memcached, we don't want
# it as hard dependency, so lazy load it.
from oslo_cache import _memcache_pool
self._pool = _memcache_pool.MemcacheClientPool(memcache_servers,
**kwargs)

View File

@ -0,0 +1,6 @@
---
fixes:
- |
[`bug 1737115 <https://bugs.launchpad.net/keystonemiddleware/+bug/1737115>`_]
Last release have accidentaly make python-memcached a hard dependency, this
have changed back to an optional one.