From 973d1bb0b7bfae9e716bb1e2ca43cefb475d1a21 Mon Sep 17 00:00:00 2001 From: Laurent Legaz Date: Mon, 16 Feb 2026 14:19:09 +0100 Subject: [PATCH 1/6] more work to be done --- src/RedisInspector.php | 10 ++++++++++ tests/CliTest.php | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/RedisInspector.php b/src/RedisInspector.php index 86b3af1..e720762 100644 --- a/src/RedisInspector.php +++ b/src/RedisInspector.php @@ -71,6 +71,10 @@ public function dumpCacheStore(bool $silent = true): array $currentDb = $this->getContext()['database']; $allData = $this->dumpAllRedis($silent, $currentDb, $currentDb + 1); + /*** + * @todo rework all those non dumping fonctions !!! + */ + //dd($allData["db{$currentDb}"][self::CACHE_LABEL] ); // Extract cache store data for current DB return $allData["db{$currentDb}"][self::CACHE_LABEL] ?? []; } @@ -85,6 +89,9 @@ public function dumpCacheStore(bool $silent = true): array */ public function dumpAllCacheStores(bool $silent = true): array { + /*** + * @todo rework those PSR 16 utils + */ $allData = $this->dumpAllRedis($silent); $cacheStores = []; @@ -94,6 +101,9 @@ public function dumpAllCacheStores(bool $silent = true): array } } + /*** + * @todo rework all those non dumping fonctions !!! + */ return $cacheStores; } diff --git a/tests/CliTest.php b/tests/CliTest.php index a15278a..d079866 100644 --- a/tests/CliTest.php +++ b/tests/CliTest.php @@ -48,11 +48,11 @@ } dump($data);*/ -$inspector->dumpAllRedis(); +//$inspector->dumpAllRedis(); -/*$inspector->selectDatabase(1); -$inspector->dumpCachePool();*/ +$inspector->selectDatabase(3); +$inspector->dumpCacheStore(); echo 'From CliTest.php: adapter used> ' . $inspector->getRedis() . PHP_EOL; From 00b7c5f59ad989b02bc97d1da2a94cd64698af1e Mon Sep 17 00:00:00 2001 From: Laurent Legaz Date: Tue, 14 Apr 2026 13:41:20 +0200 Subject: [PATCH 2/6] composer updated --- composer.json | 2 +- tests/CliTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 7817717..ca49049 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "tools" ], "require": { - "llegaz/redis-adapter": "~0.0.5", + "llegaz/redis-adapter": "~0.1", "league/climate": "^3.10" }, "require-dev": { diff --git a/tests/CliTest.php b/tests/CliTest.php index d079866..473675f 100644 --- a/tests/CliTest.php +++ b/tests/CliTest.php @@ -48,7 +48,7 @@ } dump($data);*/ -//$inspector->dumpAllRedis(); +$inspector->dumpAllRedis(); $inspector->selectDatabase(3); From d57e32cb1c1c1c073dd007ad88fffa869645a4d7 Mon Sep 17 00:00:00 2001 From: Laurent Legaz Date: Tue, 5 May 2026 19:14:51 +0200 Subject: [PATCH 3/6] Update README.md test --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cfd5ea2..9d1c6ed 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # RedisTools This tool primary purpose is to pair with my own implementation of PSR-6 pools or PSR-16 Simple Cache: -![RedisCache by Laurent LEGAZ](https://github.com/llegaz/RedisCache/workflows/CI/badge.svg)](https://github.com/llegaz/RedisCache/actions) +![[RedisCache by Laurent LEGAZ](https://github.com/llegaz/RedisCache/workflows/CI/badge.svg)](https://github.com/llegaz/RedisCache/actions) ![redis tools screenshot terminal preview](./redis-tools.png) From 5c8744b856090f191988c251c0351493d9b3f6bc Mon Sep 17 00:00:00 2001 From: Laurent Legaz Date: Tue, 5 May 2026 19:15:51 +0200 Subject: [PATCH 4/6] Update README.md retest --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9d1c6ed..f560d2c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # RedisTools This tool primary purpose is to pair with my own implementation of PSR-6 pools or PSR-16 Simple Cache: -![[RedisCache by Laurent LEGAZ](https://github.com/llegaz/RedisCache/workflows/CI/badge.svg)](https://github.com/llegaz/RedisCache/actions) +![RedisCache by Laurent LEGAZ(https://github.com/llegaz/RedisCache/workflows/CI/badge.svg)](https://github.com/llegaz/RedisCache/actions) ![redis tools screenshot terminal preview](./redis-tools.png) From 217cded2f99efc3ba98b14abac52574a03e60508 Mon Sep 17 00:00:00 2001 From: Laurent Legaz Date: Tue, 5 May 2026 19:16:20 +0200 Subject: [PATCH 5/6] Update README.md rere test --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f560d2c..38955ae 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # RedisTools This tool primary purpose is to pair with my own implementation of PSR-6 pools or PSR-16 Simple Cache: -![RedisCache by Laurent LEGAZ(https://github.com/llegaz/RedisCache/workflows/CI/badge.svg)](https://github.com/llegaz/RedisCache/actions) +![RedisCache by Laurent LEGAZ](https://github.com/llegaz/RedisCache/workflows/CI/badge.svg)(https://github.com/llegaz/RedisCache/actions) ![redis tools screenshot terminal preview](./redis-tools.png) From e97c502d7ca2021df2c5a9299d0f3b2d0d5d6650 Mon Sep 17 00:00:00 2001 From: Laurent Legaz Date: Tue, 5 May 2026 19:18:27 +0200 Subject: [PATCH 6/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 38955ae..bdad501 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # RedisTools This tool primary purpose is to pair with my own implementation of PSR-6 pools or PSR-16 Simple Cache: -![RedisCache by Laurent LEGAZ](https://github.com/llegaz/RedisCache/workflows/CI/badge.svg)(https://github.com/llegaz/RedisCache/actions) +[![RedisCache by Laurent LEGAZ](https://github.com/llegaz/RedisCache/workflows/CI/badge.svg)](https://github.com/llegaz/RedisCache/actions) ![redis tools screenshot terminal preview](./redis-tools.png)