Cmdlets for Redis

Build 24.0.9064

Remove-Redis Cmdlet

Parameters   Output Objects  

Deletes Redis data.

Syntax

Remove-Redis [parameters]

Remarks

The Remove-Redis cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Redis data.

$conn = Connect-Redis -Server '127.0.0.1' -Password 'test'
Remove-Redis -Connection $conn -Table "Customers" -Id "22"
The Where parameter can also be used to specify the primary key:
Remove-Redis -Connection $conn -Table "exTablePowershell;" -Where "_id = 22"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Redis -Connection $conn -Table Customers -Where "Country = 'US'" | Remove-Redis

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9064