Skip to content

Latest commit

 

History

History
92 lines (75 loc) · 4.72 KB

Saritasa.Redis.md

File metadata and controls

92 lines (75 loc) · 4.72 KB

Saritasa.Redis

Initialize-Redis

Synopsis

Configure some basic Redis parameters.

Syntax

Initialize-Redis [[-Host] <String>] [[-Port] <Int32>] [[-Credential] <PSCredential>] [[-UseSsl] <Boolean>] [<CommonParameters>]

Parameters

Name Alias Description Required? Pipeline Input Default Value
Host Redis hostname. false false
Port Redis port. false false 0
Credential Credential containing password to Redis. false false
UseSsl Whether or not to use secure connection. false false True

Note

StackExchange.Redis.dll file should be located in the same directory with this script.

Examples

EXAMPLE 1

$password = "123" | ConvertTo-SecureString -asPlainText -Force

$credential = New-Object System.Management.Automation.PSCredential "username", $password
Initialize-Redis myredis.host.com -Port 1433 -Credential $credential

Invoke-FlushRedis

Synopsis

Delete all the keys of the Redis database.

Syntax

Invoke-FlushRedis [<CommonParameters>]

Note

For more info, see http://redis.io/commands/flushdb

Ping-Redis

Synopsis

Pings the Redis instance.

Syntax

Ping-Redis [<CommonParameters>]