Skip to content

Commit

Permalink
Include php redis extension version in driver stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolim4 committed Apr 14, 2022
1 parent 8e5038f commit 96c960d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Phpfastcache/Drivers/Redis/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ public function getStats(): DriverStatistic
->setSize((int)$info['used_memory'])
->setInfo(
sprintf(
"The Redis daemon v%s is up since %s.\n For more information see RawData. \n Driver size includes the memory allocation size.",
"The Redis daemon v%s, php-ext v%s, is up since %s.\n For more information see RawData. \n Driver size includes the memory allocation size.",
$info['redis_version'],
\phpversion("redis"),
$date->format(DATE_RFC2822)
)
);
Expand Down

0 comments on commit 96c960d

Please sign in to comment.