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

Test-PodeCacheStorage called with incorrect param #1412

Open
willgladstone opened this issue Oct 10, 2024 · 0 comments
Open

Test-PodeCacheStorage called with incorrect param #1412

willgladstone opened this issue Oct 10, 2024 · 0 comments
Labels

Comments

@willgladstone
Copy link

Describe the Bug

When using Redis as external cache storage, the below error is thrown

Line |
 153 |          elseif (Test-PodeCacheStorage -Key $Storage) {
     |                                        ~~~~
     | A parameter cannot be found that matches parameter name 'Key'.```

### Problematic Code References
https://github.com/Badgerati/Pode/blob/21c76a16c0b57caa459fbc9de4a7d13b412133c1/src/Public/Caching.ps1#L55
https://github.com/Badgerati/Pode/blob/21c76a16c0b57caa459fbc9de4a7d13b412133c1/src/Public/Caching.ps1#L153
https://github.com/Badgerati/Pode/blob/21c76a16c0b57caa459fbc9de4a7d13b412133c1/src/Public/Caching.ps1#L207
https://github.com/Badgerati/Pode/blob/21c76a16c0b57caa459fbc9de4a7d13b412133c1/src/Public/Caching.ps1#L258
https://github.com/Badgerati/Pode/blob/21c76a16c0b57caa459fbc9de4a7d13b412133c1/src/Public/Caching.ps1#L304


### Expected Behavior
The Test-PodeCacheStorage expects a `Name` parameter.

### Additional Context
Not sure of the preferred fixed here. The least intrusive is to set an alias, or the params could be fixed to used the correct parameter name.
willgladstone added a commit to willgladstone/Pode that referenced this issue Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

1 participant