Skip to main content

LLEN

Syntax

LLEN key

Module

list

Categories

fast list read

Description

Returns the length of a list.

Examples

Returns the length of a list:

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
length, err := db.LLen("key")