From 3d9cb2896a3b61616443a0be9fe6886add8561dd Mon Sep 17 00:00:00 2001 From: Joao Gilberto Magalhaes Date: Wed, 18 Dec 2024 10:02:46 -0600 Subject: [PATCH] Add MemoryCacheEngine.php --- phpunit.xml.dist | 40 ++++++++++++++++----------------- src/Psr16/MemoryCacheEngine.php | 19 ++++++++++++++++ tests/BaseCacheTest.php | 3 +++ 3 files changed, 42 insertions(+), 20 deletions(-) create mode 100644 src/Psr16/MemoryCacheEngine.php diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 3621f92..13600e9 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -4,33 +4,33 @@ To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> - - + stopOnFailure="false" + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> + + + + + + - - - - - + + + ./src + + - - - ./src - - - - - - ./tests/ - - - + + + ./tests/ + + diff --git a/src/Psr16/MemoryCacheEngine.php b/src/Psr16/MemoryCacheEngine.php new file mode 100644 index 0000000..318937b --- /dev/null +++ b/src/Psr16/MemoryCacheEngine.php @@ -0,0 +1,19 @@ + [ new \ByJG\Cache\Psr16\RedisCacheEngine($redisCacheServer, $redisPassword) + ], + 'Memory' => [ + new \ByJG\Cache\Psr16\MemoryCacheEngine() ] ]; }