Get-TCGdexCachedResponse

SYNOPSIS

Gets one cached TCGdex response or lists all unexpired cached responses

SYNTAX

__AllParameterSets

Get-TCGdexCachedResponse [[-Uri] <string>]

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

The Get-TCGdexCachedResponse cmdlet retrieves a cached response by request uri

When Uri is not defined every unexpired cached response is returned. Cached responses expire after one hour, an expired response is removed from the cache when it is read

EXAMPLES

EXAMPLE 1

Get-TCGdexCachedResponse

Lists every unexpired cached response

EXAMPLE 2

Get-TCGdexCachedResponse -Uri 'https://api.tcgdex.net/v2/en/cards/swsh3-136'

Gets the cached response for the defined request uri

PARAMETERS

-Uri

The full request uri used as the cache key

When not defined every unexpired cached response is returned

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

N/A