Cmdlets for Redis

Build 24.0.8963

Update-Redis Cmdlet

Parameters   Output Objects  

Updates Redis data.

Syntax

Update-Redis [parameters]

Remarks

The Update-Redis cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Redis data.

$conn = Connect-Redis -Server '127.0.0.1' -Password 'test'
Update-Redis -Connection $conn -Table "Customers" -Columns @("CompanyName") -Values @("Jon Deere") -Id "22"
The Where parameter can also be used to specify the primary key of the table:
Update-Redis -Connection $conn -Table "Customers" -Columns @("CompanyName") -Values @("Jon Deere") -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'" | Update-Redis -Columns @("Country") -Values @("US 2")

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