Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
cache.Cache
// SetNoExpireCtx Because zero cache set ctx has default expire, so jzero add 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 ¶ added in v0.15.0
func NewSyncMap ¶ added in v0.15.0
NewSyncMap creates an instance of SyncMap cache driver
Click to show internal directories.
Click to hide internal directories.