cache

package
v0.0.0-...-39eec44 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheConfig

type CacheConfig struct {
	// Maximum number of channels to cache
	ChannelLimit uint
	// Maximum number of guilds to cache
	GuildLimit uint
	// Maximum number of users to cache
	UserLimit uint
}

type CachingManager

type CachingManager struct {
	// A map of cached channels, mapped by their ID
	Channels map[string]*structs.Channel
	// A map of cached guilds, mapped by their ID
	Guilds map[string]*structs.Guild
	// A map of cached users, mapped by their ID
	Users map[string]*structs.User
}

func NewCachingManager

func NewCachingManager(config CacheConfig) *CachingManager

Jump to

Keyboard shortcuts

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