Documentation ¶
Index ¶
Constants ¶
View Source
const ( PROVIDER_GO_CACHE = gocache.AppName PROVIDER_REDIS = redis.AppName )
View Source
const (
AppName = "cache"
)
Variables ¶
View Source
var (
ErrKeyNotFound = errors.New("key not found")
)
Functions ¶
Types ¶
type Cache ¶
type Cache interface { Set(ctx context.Context, key string, value any, options ...SetOption) error IncrBy(ctx context.Context, key string, value int64) (int64, error) Get(ctx context.Context, key string, value any) error Exist(ctx context.Context, key string) error Del(ctx context.Context, keys ...string) error }
type Getter ¶ added in v2.0.18
type Getter struct {
// contains filtered or unexported fields
}
func (*Getter) WithNamespace ¶ added in v2.0.18
func (*Getter) WithResourceType ¶ added in v2.0.18
type ObjectFinder ¶ added in v2.0.18
Click to show internal directories.
Click to hide internal directories.