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

Closed
willgladstone opened this issue Oct 10, 2024 · 1 comment
Closed

Test-PodeCacheStorage called with incorrect param #1412

willgladstone opened this issue Oct 10, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@willgladstone
Copy link
Contributor

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.
@Badgerati
Copy link
Owner

Fixed via #1413

@github-project-automation github-project-automation bot moved this from Backlog to Done in 🚀 Pode Roadmap Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

2 participants