Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCacheMissErr ¶ added in v1.0.5
func NewMemCache ¶
Types ¶
type GenericCache ¶ added in v1.0.5
type GenericCache struct {
// contains filtered or unexported fields
}
func NewGenericCache ¶ added in v1.0.5
func NewGenericCache(cacheKey string, c *cache.Cache[[]byte]) *GenericCache
func (*GenericCache) Clear ¶ added in v1.0.5
func (c *GenericCache) Clear(ctx context.Context) error
func (*GenericCache) Delete ¶ added in v1.0.5
func (c *GenericCache) Delete(ctx context.Context, key string) error
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.