Documentation
¶
Overview ¶
Cache package to provide an interface to interact with cache stores.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCacheIsDisabled = errors.New("cache is disabled") ErrRedisOptionsNil = errors.New("redis options is nil") )
Functions ¶
This section is empty.
Types ¶
type BigCacheClient ¶
type BigCacheStore ¶
type BigCacheStore struct {
// contains filtered or unexported fields
}
func (*BigCacheStore) Delete ¶
func (s *BigCacheStore) Delete(_ctx context.Context, key string) error
type Cache ¶
type Cache struct {
StoreType StoreType
TTL time.Duration
// contains filtered or unexported fields
}
func NewBigCache ¶
Creates a new Cache using BigCache.
Requires a BigCache config that can be created with bigcache.DefaultConfig(n*time.Minute).
type RedisClient ¶
type RedisStore ¶
type RedisStore struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.