Skip to main content

COMMAND COUNT

Syntax

COMMAND COUNT

Module

admin

Categories

admin slow

Description

Get the number of commands in the SugarDB instance.

Examples

Get server command count:

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
count, err := db.CommandCount()