diff --git a/README.md b/README.md index cfd5ea2..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) 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/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..473675f 100644 --- a/tests/CliTest.php +++ b/tests/CliTest.php @@ -51,8 +51,8 @@ $inspector->dumpAllRedis(); -/*$inspector->selectDatabase(1); -$inspector->dumpCachePool();*/ +$inspector->selectDatabase(3); +$inspector->dumpCacheStore(); echo 'From CliTest.php: adapter used> ' . $inspector->getRedis() . PHP_EOL;