Skip to main content

LINDEX

Syntax

LINDEX key index

Module

list

Categories

fast list read

Description

Returns the list element at the given index.

Examples

Returns the list element at the given index:

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
element, err := db.LIndex("key", 2)