Documentation
¶
Index ¶
- func LoadFromOptions(ctx context.Context, opts *goredis.Options) (registrycache.MemoryEntriesCache, error)
- func LoadFromOptionsWithTTL(ctx context.Context, opts *goredis.Options, ttl time.Duration) (registrycache.MemoryEntriesCache, error)
- func LoadFromURL(ctx context.Context, redisURL string) (registrycache.MemoryEntriesCache, error)
- func LoadFromURLWithTTL(ctx context.Context, redisURL string, ttl time.Duration) (registrycache.MemoryEntriesCache, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFromOptions ¶
func LoadFromOptions(ctx context.Context, opts *goredis.Options) (registrycache.MemoryEntriesCache, error)
LoadFromOptions creates a MemoryEntriesCache from go-redis Options. This allows callers to customize options (e.g. Protocol for RESP2).
func LoadFromOptionsWithTTL ¶
func LoadFromOptionsWithTTL(ctx context.Context, opts *goredis.Options, ttl time.Duration) (registrycache.MemoryEntriesCache, error)
func LoadFromURL ¶
func LoadFromURL(ctx context.Context, redisURL string) (registrycache.MemoryEntriesCache, error)
LoadFromURL creates a MemoryEntriesCache from a Redis-compatible URL. This is exported so other plugins (e.g. Infinispan RESP) can reuse the implementation.
func LoadFromURLWithTTL ¶
func LoadFromURLWithTTL(ctx context.Context, redisURL string, ttl time.Duration) (registrycache.MemoryEntriesCache, error)
LoadFromURLWithTTL creates a cache with an explicit memory-entry TTL.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.