diff --git a/src/masonite/cache/drivers/MemcacheDriver.py b/src/masonite/cache/drivers/MemcachedDriver.py similarity index 99% rename from src/masonite/cache/drivers/MemcacheDriver.py rename to src/masonite/cache/drivers/MemcachedDriver.py index 2aa400b73..8c49dfc30 100644 --- a/src/masonite/cache/drivers/MemcacheDriver.py +++ b/src/masonite/cache/drivers/MemcachedDriver.py @@ -1,7 +1,7 @@ import json -class MemcacheDriver: +class MemcachedDriver: def __init__(self, application): self.application = application self.connection = None diff --git a/src/masonite/cache/drivers/__init__.py b/src/masonite/cache/drivers/__init__.py index 5c796ed0a..e0977d10b 100644 --- a/src/masonite/cache/drivers/__init__.py +++ b/src/masonite/cache/drivers/__init__.py @@ -1,3 +1,3 @@ from .FileDriver import FileDriver from .RedisDriver import RedisDriver -from .MemcacheDriver import MemcacheDriver +from .MemcachedDriver import MemcachedDriver diff --git a/src/masonite/providers/CacheProvider.py b/src/masonite/providers/CacheProvider.py index 7de4ce9e4..96fc9478c 100644 --- a/src/masonite/providers/CacheProvider.py +++ b/src/masonite/providers/CacheProvider.py @@ -1,6 +1,6 @@ from .Provider import Provider from ..cache import Cache -from ..cache.drivers import FileDriver, RedisDriver, MemcacheDriver +from ..cache.drivers import FileDriver, RedisDriver, MemcachedDriver from ..configuration import config @@ -12,7 +12,7 @@ def register(self): cache = Cache(self.application).set_configuration(config("cache.stores")) cache.add_driver("file", FileDriver(self.application)) cache.add_driver("redis", RedisDriver(self.application)) - cache.add_driver("memcache", MemcacheDriver(self.application)) + cache.add_driver("memcached", MemcachedDriver(self.application)) self.application.bind("cache", cache) def boot(self): diff --git a/tests/features/cache/test_memcache_cache.py b/tests/features/cache/test_memcache_cache.py index 674438e84..7fb41cc6b 100644 --- a/tests/features/cache/test_memcache_cache.py +++ b/tests/features/cache/test_memcache_cache.py @@ -9,7 +9,7 @@ class TestMemcacheCache(TestCase): def setUp(self): super().setUp() self.application.make("cache") - self.driver = self.application.make("cache").store("memcache") + self.driver = self.application.make("cache").store("memcached") def test_can_add_file_driver(self): self.assertEqual(self.driver.add("add_key", "value"), "value") diff --git a/tests/integrations/config/cache.py b/tests/integrations/config/cache.py index 355c4d1a7..f183b4d39 100644 --- a/tests/integrations/config/cache.py +++ b/tests/integrations/config/cache.py @@ -14,8 +14,8 @@ "password": "", "name": "masonite4", }, - "memcache": { - "driver": "memcache", + "memcached": { + "driver": "memcached", "host": "127.0.0.1", "port": "11211", "password": "",