Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithExpiry ¶
WithExpiry returns a func to customize an Options with given expiry.
Types ¶
type Cache ¶
type Cache interface {
cache.Cache
// SetNoExpireCtx Because zero cache set ctx has default expire, so pzero adds this method.
SetNoExpireCtx(ctx context.Context, key string, val any) error
// GetPrefixKeysCtx get prefix key, give prefix key return all matched key
GetPrefixKeysCtx(ctx context.Context, prefix string) ([]string, error)
// ExpireCtx set key expire
ExpireCtx(ctx context.Context, key string, expire time.Duration) error
}
func NewRedisNode ¶
Click to show internal directories.
Click to hide internal directories.