cache

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const KeyPrefix = "ecmdb:user:ldap:"

Variables

This section is empty.

Functions

This section is empty.

Types

type LdapUserCache

type LdapUserCache interface {
	LPush(ctx context.Context, profiles []domain.Profile) error
	Lrange(ctx context.Context, offset, limit int64) ([]domain.Profile, error)
	Count(ctx context.Context) (int64, error)
}

func NewLdapUserCache

func NewLdapUserCache(client redis.Cmdable, expiration time.Duration) LdapUserCache

type RedisearchLdapUserCache

type RedisearchLdapUserCache interface {
	Document(ctx context.Context, profiles []domain.Profile) error
	Query(ctx context.Context, keywords string, offset, limit int) ([]domain.Profile, int, error)
}

func NewRedisearchLdapUserCache

func NewRedisearchLdapUserCache(conn *redisearch.Client) RedisearchLdapUserCache

Jump to

Keyboard shortcuts

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