From c0dee642134e451bcd7c08c60db5a684db48393f Mon Sep 17 00:00:00 2001 From: Michael Coyne Date: Sun, 10 Mar 2024 14:04:33 -0400 Subject: [PATCH] add Proxy#Client() func --- proxy.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proxy.go b/proxy.go index 284e787..be8ca10 100644 --- a/proxy.go +++ b/proxy.go @@ -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) {