Documentation
¶
Index ¶
- type Cache
- func (c *Cache) DecrBy(ctx context.Context, key string, value int64) (int64, error)
- func (c *Cache) Delete(ctx context.Context, key ...string) (int64, error)
- func (c *Cache) Get(ctx context.Context, key string) (val ecache.Value)
- func (c *Cache) GetSet(ctx context.Context, key string, val string) (result ecache.Value)
- func (c *Cache) IncrBy(ctx context.Context, key string, value int64) (int64, error)
- func (c *Cache) IncrByFloat(ctx context.Context, key string, value float64) (float64, error)
- func (c *Cache) LPop(ctx context.Context, key string) (result ecache.Value)
- func (c *Cache) LPush(ctx context.Context, key string, val ...any) (int64, error)
- func (c *Cache) SAdd(ctx context.Context, key string, members ...any) (int64, error)
- func (c *Cache) SRem(ctx context.Context, key string, members ...any) (int64, error)
- func (c *Cache) Set(ctx context.Context, key string, val any, expiration time.Duration) error
- func (c *Cache) SetNX(ctx context.Context, key string, val any, expiration time.Duration) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.