Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryUserCache ¶
type MemoryUserCache struct {
// contains filtered or unexported fields
}
MemoryUserCache is a memory-based nickname cache
func NewInMemory ¶
func NewInMemory() (*MemoryUserCache, error)
NewInMemory returns a new MemoryUserCache
func (*MemoryUserCache) GetOrFetchUser ¶
GetOrFetchUser loads user info from cache, falling back to the database if necessary
Click to show internal directories.
Click to hide internal directories.