Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apcu key fetch problem #237

Open
ywcdiao opened this issue Dec 11, 2023 · 0 comments
Open

Apcu key fetch problem #237

ywcdiao opened this issue Dec 11, 2023 · 0 comments

Comments

@ywcdiao
Copy link

ywcdiao commented Dec 11, 2023

Hi @gordalina

Sometimes it results in an error if the apcu key contains "%": https://github.com/gordalina/cachetool/blob/main/src/Command/ApcuKeyFetchCommand.php#L45

For example:

vendor/bin/cachetool apcu:key:fetch "2m9Y57pSrU:[C]Bundle%5CNamespace%5CClassName"

Warning: sprintf(): Too few arguments in vendor/gordalina/cachetool/src/Command/ApcuKeyFetchCommand.php on line 45

What about rewrite the php code at line 45 in the command ApcuKeyFetchCommand?

$output->writeln(sprintf("<comment>APCu key=<info>%1\$s</info> has value=<info>%2\$s</info></comment>", $key, var_export($value, true)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant