Skip to content

Commit

Permalink
add Proxy#Client() func
Browse files Browse the repository at this point in the history
  • Loading branch information
mjc-gh committed Mar 10, 2024
1 parent 092c18c commit c0dee64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ func (p *Proxy) Key() string {
return p.key
}

func (p *Proxy) Client() *redis.Client {
return p.client
}

// Get the key's current TTL. Redis is only called if the type was configured
// WithExpiry(). If no expiry is configured, a zero value Duration is returned
func (p *Proxy) TTL() (time.Duration, error) {
Expand Down

0 comments on commit c0dee64

Please sign in to comment.