Configure some basic Redis parameters.
Initialize-Redis [[-Host] <String>] [[-Port] <Int32>] [[-Credential] <PSCredential>] [[-UseSsl] <Boolean>] [<CommonParameters>]
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 |
StackExchange.Redis.dll file should be located in the same directory with this script.
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
Delete all the keys of the Redis database.
Invoke-FlushRedis [<CommonParameters>]
For more info, see http://redis.io/commands/flushdb
Pings the Redis instance.
Ping-Redis [<CommonParameters>]