For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get-PSUCache

Returns data from the server-wide cache.

SYNOPSIS

Returns data from the server-wide cache.

SYNTAX

Key

Get-PSUCache -Key <String> [-Detail] [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
 [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

List

Get-PSUCache [-Key <String>] [-List] [-Detail] [-ComputerName <String>] [-AppToken <String>]
 [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

DESCRIPTION

Returns data from the server-wide cache. The server-wide cache is used to store data that is used between APIs, dashboards and scripts.

This cmdlet can only be called within APIs, dashboards and scripts. You cannot access the server-wide cache through the PowerShell Universal Management API.

EXAMPLES

Example 1

Returns the DataTable cache data. Server-wide cache data is stored as CLIXML and deserialized before being returned to the pipeline.

PARAMETERS

-Key

The cache key of the data to return.

-AppToken

Not used

-ComputerName

Not used

-Integrated

Not used

-UseDefaultCredentials

Not used

-Credential

Credentials to login to the PowerShell Universal Management API.

-List

Returns a list of cached items.

-TrustCertificate

Whether the cmdlet should ignore certificate issues.

-Detail

Returns the cache value details rather than the value.

-Cookies

Reuses and persists authentication cookies for the current PowerShell session.

CommonParameters

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

INPUTS

None

OUTPUTS

System.Object

NOTES

Set-PSUCache

Last updated

Was this helpful?