Documentation
¶
Index ¶
- type Cache
- func (c *Cache) Client() *redis.Client
- func (c *Cache) Close() error
- func (c *Cache) Delete(ctx context.Context, key string) error
- func (c *Cache) Get(ctx context.Context, key string) (string, error)
- func (c *Cache) GetBytes(ctx context.Context, key string) ([]byte, error)
- func (c *Cache) GetInt64(ctx context.Context, key string) (int64, error)
- func (c *Cache) GetJSON(ctx context.Context, key string, v interface{}) error
- func (c *Cache) Incr(ctx context.Context, key string) (int64, error)
- func (c *Cache) Set(ctx context.Context, key, val string) error
- func (c *Cache) SetInt64(ctx context.Context, key string, val int64) error
- func (c *Cache) SetJSON(ctx context.Context, key string, val interface{}) error
- func (c *Cache) SetTTL(ctx context.Context, key string, ttl int64) error
- func (c *Cache) SetTimed(ctx context.Context, key, val string, ttl int64) error
- func (c *Cache) SetTimedInt64(ctx context.Context, key string, val int64, ttl int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.