Skip to content

Commit 6260ffc

Browse files
authored
Replace python-memcached with pylibmc (#296)
* Replace python-memcached with pylibmc
1 parent 3874c37 commit 6260ffc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
pip install -U "pip>=21.1"
5151
pip install -U setuptools "tox>=3.23.0,<4" codecov tox-gh-actions coverage
5252
sudo apt-get update
53-
sudo apt-get install binutils libproj-dev gdal-bin
53+
sudo apt-get install binutils libproj-dev gdal-bin libmemcached-dev
5454
- name: Log versions
5555
run: |
5656
python --version

django_prometheus/cache/backends/memcached.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
)
88

99

10-
class MemcachedCache(memcached.MemcachedCache):
10+
class MemcachedCache(memcached.PyLibMCCache):
1111
"""Inherit memcached to add metrics about hit/miss ratio"""
1212

1313
def get(self, key, default=None, version=None):

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ mysqlclient
88
psycopg2
99
pytest==6.2.5
1010
pytest-django
11-
python-memcached
11+
pylibmc

0 commit comments

Comments
 (0)