Documentation
      ¶
    
    
  
    
  
    Index ¶
- type RedisClient
 - func (r *RedisClient) Close() error
 - func (r *RedisClient) Delete(ctx context.Context, key string) error
 - func (r *RedisClient) Exists(ctx context.Context, key string) bool
 - func (r *RedisClient) Get(ctx context.Context, key string, dest interface{}) error
 - func (r *RedisClient) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) error
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisClient ¶
type RedisClient struct {
	// contains filtered or unexported fields
}
    RedisClient Redis客户端封装
func (*RedisClient) Delete ¶
func (r *RedisClient) Delete(ctx context.Context, key string) error
Delete 删除缓存
func (*RedisClient) Exists ¶
func (r *RedisClient) Exists(ctx context.Context, key string) bool
Exists 检查键是否存在
 Click to show internal directories. 
   Click to hide internal directories.