Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions rueidiscompat/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ type Cmdable interface {
SSubscribe(ctx context.Context, channels ...string) PubSub

Watch(ctx context.Context, fn func(Tx) error, keys ...string) error

Client() rueidis.Client
}

type CoreCmdable interface {
Expand Down Expand Up @@ -662,6 +664,10 @@ func NewAdapter(client rueidis.Client, options ...AdapterOption) Cmdable {
return c
}

func (c *Compat) Client() rueidis.Client {
return c.client
}

func (c *Compat) Cache(ttl time.Duration) CacheCompat {
return CacheCompat{client: c.client, ttl: ttl}
}
Expand Down
Loading