redis

package
v2.0.0-...-e570596 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func New

func New(url string) (*Store, error)

func (*Store) DeleteMember

func (s *Store) DeleteMember(ctx context.Context, guildID discord.GuildID, userID discord.UserID) error

func (*Store) Invites

func (s *Store) Invites(ctx context.Context, guildID discord.GuildID) (is []discord.Invite, err error)

func (*Store) IsGuildCached

func (s *Store) IsGuildCached(ctx context.Context, guildID discord.GuildID) (bool, error)

func (*Store) MarkGuildCached

func (s *Store) MarkGuildCached(ctx context.Context, guildID discord.GuildID) error

func (*Store) Member

func (s *Store) Member(ctx context.Context, guildID discord.GuildID, userID discord.UserID) (m discord.Member, err error)

func (*Store) MemberExists

func (s *Store) MemberExists(ctx context.Context, guildID discord.GuildID, userID discord.UserID) (bool, error)

func (*Store) Members

func (s *Store) Members(ctx context.Context, guildID discord.GuildID) (ms []discord.Member, err error)

func (*Store) SetInvites

func (s *Store) SetInvites(ctx context.Context, guildID discord.GuildID, is []discord.Invite) error

func (*Store) SetMember

func (s *Store) SetMember(ctx context.Context, guildID discord.GuildID, m discord.Member) error

func (*Store) SetMembers

func (s *Store) SetMembers(ctx context.Context, guildID discord.GuildID, ms []discord.Member) error

Jump to

Keyboard shortcuts

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