Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMemCache ¶
func NewRedisCache ¶
func SetRedis ¶
func SetRedis(redisOpt RedisOptions)
Types ¶
type CacheOptions ¶
type CacheOptions struct {
// contains filtered or unexported fields
}
type MultiKeyCache ¶
type MultiKeyCache[V MultiKeyObject] struct { // contains filtered or unexported fields }
func NewMultiKeyCache ¶
func NewMultiKeyCache[V MultiKeyObject](c cache.Cache[V]) *MultiKeyCache[V]
func (*MultiKeyCache[V]) Delete ¶
func (m *MultiKeyCache[V]) Delete(ctx context.Context, key string) error
type MultiKeyObject ¶
type MultiKeyObject interface {
GetKeys() []string
}
type RedisOptions ¶
func (*RedisOptions) GetGoRedisOptions ¶
func (o *RedisOptions) GetGoRedisOptions() *goredis.Options
Click to show internal directories.
Click to hide internal directories.