Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - type Client
 - func (r Client) Del(ctx context.Context, key string) (int64, error)
 - func (r Client) Get(ctx context.Context, key string) (string, error)
 - func (r Client) Keys(ctx context.Context, match string) ([]string, error)
 - func (r Client) Lock(ctx context.Context, key string, ttl time.Duration) (bool, error)
 - func (r Client) Set(ctx context.Context, key string, value string, ttl time.Duration) (string, error)
 - func (r Client) SetNX(ctx context.Context, key string, value string, ttl time.Duration) (bool, error)
 - func (r Client) TTL(ctx context.Context, key string) (int64, error)
 - func (r Client) Unlock(ctx context.Context, key string) (bool, error)
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  var CACert = `` /* 6689-byte string literal not displayed */
    CACert - hack for redis labs CA issue
      View Source
      
  var KeepTTL = redis.KeepTTL
    KeepTTL - helper to expose KeepTTL
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client - instance created when initializing client
func NewSecure ¶ added in v0.0.5
func NewSecure(uri string, clientCertPath string, clientKeyPath string, skipVerify bool) (Client, error)
NewSecure - constructor to create an instance of the client
func (Client) Set ¶
func (r Client) Set(ctx context.Context, key string, value string, ttl time.Duration) (string, error)
Set - implementation of redis SET, ctx can be nil
func (Client) SetNX ¶
func (r Client) SetNX(ctx context.Context, key string, value string, ttl time.Duration) (bool, error)
SetNX - implementation of redis SET with NX flag, ctx can be nil
 Click to show internal directories. 
   Click to hide internal directories.