Documentation
¶
Index ¶
- type Cache
- func (r *Cache) Decrease(ctx context.Context, key string, value int64) (data int64, err error)
- func (r *Cache) Del(ctx context.Context, key string) error
- func (r *Cache) Flush(ctx context.Context) error
- func (r *Cache) GetInt64(ctx context.Context, key string) (data int64, exist bool, err error)
- func (r *Cache) GetString(ctx context.Context, key string) (data string, exist bool, err error)
- func (r *Cache) Increase(ctx context.Context, key string, value int64) (data int64, err error)
- func (r *Cache) SetInt64(ctx context.Context, key string, value int64, ttl time.Duration) error
- func (r *Cache) SetString(ctx context.Context, key, value string, ttl time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
Client *redis.Client
}
Cache redis cache
Click to show internal directories.
Click to hide internal directories.