Cache
Caching mechanisms in PowerShell Universal.
Server-Level Cache
Setting items in the cache
Set-PSUCache -Key "CurrentDate" -Value (Get-Date)Absolute Expiration
Set-PSUCache -Key "CurrentDate" -Value (Get-Date) -AbsoluteExpiration (Get-Date).AddMinutes(10)Absolute Expiration From Now
Sliding Expiration
Getting items from the cache
$Cache Scope
API
Last updated
Was this helpful?