Documentation ¶
Index ¶
- type MemcachedCacheStorage
- func (s MemcachedCacheStorage) Del(ctx context.Context, key string) (bool, error)
- func (s MemcachedCacheStorage) Get(ctx context.Context, key string) (string, error)
- func (s MemcachedCacheStorage) Set(ctx context.Context, key string, value string, ...) error
- func (s MemcachedCacheStorage) TTL(ctx context.Context, key string) (bool, time.Duration, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemcachedCacheStorage ¶
type MemcachedCacheStorage struct {
// contains filtered or unexported fields
}
func NewMemcachedCacheStorage ¶
func NewMemcachedCacheStorage(memcache *memcache.Client) MemcachedCacheStorage
NewRedisCacheStorage creates a new RedisCacheStorage
func (MemcachedCacheStorage) Set ¶
func (s MemcachedCacheStorage) Set(ctx context.Context, key string, value string, options storage.CacheStorageItemOptions) error
Set sets a value in Redis by key
Click to show internal directories.
Click to hide internal directories.