cache

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInCache

func NewInCache(db profile.Store, ttl time.Duration) profile.Store

Types

type Cache

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

func (*Cache) GetProfile

func (c *Cache) GetProfile(ctx context.Context, id *commonpb.UserId) (*profilepb.UserProfile, error)

func (*Cache) GetUserLinkedToXAccount

func (c *Cache) GetUserLinkedToXAccount(ctx context.Context, xUserID string) (*commonpb.UserId, error)

func (*Cache) GetXProfile

func (c *Cache) GetXProfile(ctx context.Context, userID *commonpb.UserId) (*profilepb.XProfile, error)

func (*Cache) LinkXAccount

func (c *Cache) LinkXAccount(ctx context.Context, userID *commonpb.UserId, xProfile *profilepb.XProfile, accessToken string) error

func (*Cache) SetDisplayName

func (c *Cache) SetDisplayName(ctx context.Context, id *commonpb.UserId, displayName string) error

func (*Cache) UnlinkXAccount added in v1.3.0

func (c *Cache) UnlinkXAccount(ctx context.Context, userID *commonpb.UserId, xUserID string) error

Jump to

Keyboard shortcuts

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