> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell-universal/es/comandos-de-powershell/get-psucache.md).

# Get-PSUCache

Get-PSUCache recupera los datos almacenados en la caché global del servidor PowerShell Universal que se comparte entre APIs, dashboards y scripts.

## SINOPSIS

Devuelve datos de la caché global del servidor.

## SINTAXIS

```powershell
Get-PSUCache -Key <String> [-Detail] [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies] [<CommonParameters>]
Get-PSUCache [-Key <String>] -List [-Detail] [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies] [-Skip <UInt64>] [-First <UInt64>] [-IncludeTotalCount] [<CommonParameters>]
```

## DESCRIPCIÓN

Devuelve los datos de la caché global del servidor compartida entre APIs, dashboards y scripts. Los valores se almacenan como CLIXML y se deserializan cuando se recuperan por clave. Utilice `-List` para devolver los elementos de la caché (100 por página de forma predeterminada); opcionalmente, filtre por clave y recórralos página por página. Este cmdlet también se puede llamar de forma remota a través de la PowerShell Universal Management API.

## EJEMPLOS

### Ejemplo 1

```powershell
Get-PSUCache -Key 'DataTable'
```

Devuelve los datos de caché de DataTable. Los datos de la caché global del servidor se almacenan como CLIXML y se deserializan antes de devolverse a la canalización.

## PARÁMETROS

| Parámetro                | Descripción                                                                                          |
| ------------------------ | ---------------------------------------------------------------------------------------------------- |
| `-Key`                   | Clave de caché que se recupera; filtro opcional con `-List`.                                         |
| `-List`                  | Devuelve elementos de la caché en lugar de un valor de caché deserializado.                          |
| `-Detail`                | Devuelve los detalles del elemento de caché en lugar del valor deserializado al recuperar una clave. |
| `-Skip`                  | Número de elementos de caché que se omiten al enumerar.                                              |
| `-First`                 | Número máximo de elementos de caché que se enumeran; el valor predeterminado es 100 si se omite.     |
| `-IncludeTotalCount`     | Emite el número total de elementos de caché coincidentes al enumerar.                                |
| `-ComputerName`          | URL o nombre de host del servidor PowerShell Universal; alias `-Uri`.                                |
| `-AppToken`              | Token de aplicación para la API de administración.                                                   |
| `-Credential`            | Credenciales para la API de administración.                                                          |
| `-UseDefaultCredentials` | Usa las credenciales actuales de Windows.                                                            |
| `-Integrated`            | Usa el cliente de administración en proceso dentro de PowerShell Universal.                          |
| `-TrustCertificate`      | Ignora los errores de validación del certificado.                                                    |
| `-Cookies`               | Reutiliza las cookies de autenticación de la sesión de PowerShell.                                   |

## ENTRADAS

Ninguno.

## SALIDAS

`System.Object` (valor deserializado o elementos de caché).

## ENLACES RELACIONADOS

[Set-PSUCache](/powershell-universal/es/comandos-de-powershell/set-psucache.md)

## PERMISOS

El token de acceso requiere `platform.cache/read` para ejecutar este cmdlet de forma remota.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/powershell-universal/es/comandos-de-powershell/get-psucache.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
