cache

package
v1.14.1-alpha Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PreferredHandleByDid    = "preferred_handle:did:%s"
	PreferredHandleByHandle = "preferred_handle:handle:%s"
	PreferredHandleTTL      = 24 * time.Hour
)

Variables

This section is empty.

Functions

func LookupDidByPreferredHandle

func LookupDidByPreferredHandle(ctx context.Context, rdb *Cache, e db.Execer, handle syntax.Handle) string

func LookupPreferredHandle

func LookupPreferredHandle(ctx context.Context, rdb *Cache, e db.Execer, did string) string

Types

type Cache

type Cache struct {
	*redis.Client
}

func New

func New(addr string) *Cache

Source Files

  • cache.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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