Skip to main content

SUBSTR

Syntax

SUBSTR key start end

Module

sortedset

Categories

read slow sortedset

Description

Return the substring of the string value stored at key. The substring is specified by the start and end indexes.

Examples

Get the substring of a string value:

vault, err := echovault.NewEchoVault()
if err != nil {
log.Fatal(err)
}
substring, err := vault.GetRange("key", 4, 10)