Is there a way just to return the cache names? I’m trying Get-PSUCache -List and it is returning the keys and values. We only want to get the key names.
Product: PowerShell Universal
Version: 5.4.4
Is there a way just to return the cache names? I’m trying Get-PSUCache -List and it is returning the keys and values. We only want to get the key names.
Product: PowerShell Universal
Version: 5.4.4
There is no current switch to just get the Key Names, what I do here is (Get-PSUCache -List).Key
if I just want the key names
I wrote a method to get various details of the cache in a feature request here: Add switch to Get-PSUCache to return the Object or a Data blob that contains the info about a cache item · Issue #4589 · ironmansoftware/powershell-universal · GitHub
Thanks. I misunderstood what -List was doing.
We are working with some large data sets and I created a function to split them into multiple caches by a key word and was trying to clean them up, but -List wasn’t working the way I thought it was meant to.