Skip to main content

ACL CAT

Syntax

ACL CAT [category]

Module

acl

Categories

slow

Description

Lists all the categories. If the optional category is provided, lists all the commands in the category.

Examples

List all categories:

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

List all commands/subcommands in pubsub module:

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
commands, err := db.ACLCat("pubsub")