Skip to content

Apcu key fetch problem #237

@ywcdiao

Description

@ywcdiao

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)));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions