guildscache

package
v0.1.3-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GuildsCache

type GuildsCache interface {
	FindCommandPrefix(ctx context.Context, guildId string) (string, error)
	SetCommandPrefix(ctx context.Context, guildId string, prefix string) error
}

type GuildsRedisCache

type GuildsRedisCache struct {
	// contains filtered or unexported fields
}

func NewGuildsRedisCache

func NewGuildsRedisCache(rc *redis.Client) *GuildsRedisCache

func (*GuildsRedisCache) FindCommandPrefix

func (c *GuildsRedisCache) FindCommandPrefix(ctx context.Context, guildId string) (string, error)

func (*GuildsRedisCache) SetCommandPrefix

func (c *GuildsRedisCache) SetCommandPrefix(ctx context.Context, guildId string, prefix string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL