Get PodeCache - mdaneri/Pode GitHub Wiki
Return the value of a key from the cache. You can use "$value = $cache:key" as well.
Get-PodeCache [-Key] <String> [[-Storage] <String>] [-Metadata] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Return the value of a key from the cache, or returns the value plus metadata such as expiry time if required. You can use "$value = $cache:key" as well.
$value = Get-PodeCache -Key 'ExampleKey'
$value = Get-PodeCache -Key 'ExampleKey' -Storage 'ExampleStorage'
$value = Get-PodeCache -Key 'ExampleKey' -Metadata
$value = $cache:ExampleKey
The Key to be retrieved.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseIf supplied, and if supported by the cache storage, an metadata such as expiry times will also be returned.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseAn optional cache Storage name. (Default: in-memory)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.