Skip to content

Commit

Permalink
Merge branch 'develop' into missing-csp-params
Browse files Browse the repository at this point in the history
  • Loading branch information
Badgerati authored Oct 16, 2024
2 parents 9b2b8db + bd7e284 commit 326c777
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Public/Caching.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function Get-PodeCache {
}

# used custom storage
if (Test-PodeCacheStorage -Key $Storage) {
if (Test-PodeCacheStorage -Name $Storage) {
return (Invoke-PodeScriptBlock -ScriptBlock $PodeContext.Server.Cache.Storage[$Storage].Get -Arguments @($Key, $Metadata.IsPresent) -Splat -Return)
}

Expand Down Expand Up @@ -150,7 +150,7 @@ function Set-PodeCache {
}

# used custom storage
elseif (Test-PodeCacheStorage -Key $Storage) {
elseif (Test-PodeCacheStorage -Name $Storage) {
$null = Invoke-PodeScriptBlock -ScriptBlock $PodeContext.Server.Cache.Storage[$Storage].Set -Arguments @($Key, $InputObject, $Ttl) -Splat
}

Expand Down Expand Up @@ -204,7 +204,7 @@ function Test-PodeCache {
}

# used custom storage
if (Test-PodeCacheStorage -Key $Storage) {
if (Test-PodeCacheStorage -Name $Storage) {
return (Invoke-PodeScriptBlock -ScriptBlock $PodeContext.Server.Cache.Storage[$Storage].Test -Arguments @($Key) -Splat -Return)
}

Expand Down Expand Up @@ -255,7 +255,7 @@ function Remove-PodeCache {
}

# used custom storage
elseif (Test-PodeCacheStorage -Key $Storage) {
elseif (Test-PodeCacheStorage -Name $Storage) {
$null = Invoke-PodeScriptBlock -ScriptBlock $PodeContext.Server.Cache.Storage[$Storage].Remove -Arguments @($Key) -Splat
}

Expand Down Expand Up @@ -301,7 +301,7 @@ function Clear-PodeCache {
}

# used custom storage
elseif (Test-PodeCacheStorage -Key $Storage) {
elseif (Test-PodeCacheStorage -Name $Storage) {
$null = Invoke-PodeScriptBlock -ScriptBlock $PodeContext.Server.Cache.Storage[$Storage].Clear
}

Expand Down Expand Up @@ -554,4 +554,4 @@ function Get-PodeCacheDefaultTtl {
param()

return $PodeContext.Server.Cache.DefaultTtl
}
}

0 comments on commit 326c777

Please sign in to comment.