Add dogpile.cache.pymemcache backend
Depends-On: https://review.opendev.org/c/openstack/requirements/+/772684 Change-Id: Ibdc6015ac1a9812976c4f3d8a737f7245599553e Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
This commit is contained in:
parent
bc9c70fd66
commit
b00b3b23b4
@ -37,6 +37,13 @@
|
||||
tox_environment:
|
||||
OSLO_BACKEND: dogpile_cache_bmemcached
|
||||
|
||||
- job:
|
||||
name: oslo.cache-functional-dogpile.cache.pymemcache
|
||||
parent: oslo.cache-functional-memcached
|
||||
vars:
|
||||
tox_environment:
|
||||
OSLO_BACKEND: dogpile_cache_pymemcache
|
||||
|
||||
- job:
|
||||
name: oslo.cache-functional-memcache_pool
|
||||
parent: oslo.cache-functional-memcached
|
||||
@ -56,4 +63,5 @@
|
||||
jobs:
|
||||
- oslo.cache-functional-etcd3gw
|
||||
- oslo.cache-functional-dogpile.cache.bmemcached
|
||||
- oslo.cache-functional-dogpile.cache.pymemcache
|
||||
- oslo.cache-functional-memcache_pool
|
||||
|
@ -6,7 +6,7 @@ cliff==3.1.0
|
||||
cmd2==0.8.9
|
||||
debtcollector==2.1.0
|
||||
decorator==4.4.2
|
||||
dogpile.cache==1.0.2
|
||||
dogpile.cache==1.1.2
|
||||
entrypoints==0.3
|
||||
etcd3gw==0.2.0
|
||||
extras==1.0.0
|
||||
@ -37,6 +37,7 @@ pifpaf==0.10.0
|
||||
prettytable==0.7.2
|
||||
pycparser==2.18
|
||||
pyinotify==0.9.6
|
||||
pymemcache==3.4.0
|
||||
pymongo==3.0.2
|
||||
pyparsing==2.2.0
|
||||
pyperclip==1.8.0
|
||||
|
@ -38,6 +38,7 @@ FILE_OPTIONS = {
|
||||
'oslo_cache.dict',
|
||||
'oslo_cache.mongo',
|
||||
'oslo_cache.etcd3gw',
|
||||
'dogpile.cache.pymemcache',
|
||||
'dogpile.cache.memcached',
|
||||
'dogpile.cache.pylibmc',
|
||||
'dogpile.cache.bmemcached',
|
||||
|
@ -0,0 +1,29 @@
|
||||
# Copyright 2021 Red Hat, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from oslo_cache.tests.functional import test_base
|
||||
|
||||
|
||||
class TestDogpileCachePyMemcacheBackend(test_base.BaseTestCaseCacheBackend):
|
||||
def setUp(self):
|
||||
self.config_fixture.config(
|
||||
group="cache",
|
||||
backend="dogpile.cache.pymemcache",
|
||||
memcache_servers="localhost:11212",
|
||||
)
|
||||
|
||||
# NOTE(hberaud): super must be called after all to ensure that
|
||||
# config fixture is properly initialized with value related to
|
||||
# the current backend in use.
|
||||
super().setUp()
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Added a new memcached driver that uses pymemcache through dogpile.cache.
|
@ -2,7 +2,7 @@
|
||||
# of appearance. Changing the order has an impact on the overall integration
|
||||
# process, which may cause wedges in the gate later.
|
||||
|
||||
dogpile.cache>=1.0.2 # BSD
|
||||
dogpile.cache>=1.1.2 # BSD
|
||||
oslo.config>=8.1.0 # Apache-2.0
|
||||
oslo.i18n>=5.0.0 # Apache-2.0
|
||||
oslo.log>=4.2.1 # Apache-2.0
|
||||
|
@ -8,6 +8,7 @@ pifpaf>=0.10.0 # Apache-2.0
|
||||
bandit>=1.6.0,<1.7.0 # Apache-2.0
|
||||
stestr>=2.0.0 # Apache-2.0
|
||||
pre-commit>=2.6.0 # MIT
|
||||
pymemcache>=3.4.0 # Apache-2.0
|
||||
python-binary-memcached>=0.29.0 # MIT
|
||||
python-memcached>=1.56 # PSF
|
||||
pymongo!=3.1,>=3.0.2 # Apache-2.0
|
||||
|
Loading…
Reference in New Issue
Block a user