Skip to content

Commit

Permalink
Merge pull request #22 from FGadvancer/main
Browse files Browse the repository at this point in the history
feat: rockscache client return redis client.
  • Loading branch information
yedf2 authored May 29, 2024
2 parents a01baf8 + 68a9ef3 commit b0fc0cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,18 @@ func NewDefaultOptions() Options {
}
}

// Client delay client
// Client delay client.
type Client struct {
rdb redis.UniversalClient
Options Options
group singleflight.Group
}

// Rdb return the Redis client.
func (c *Client) Rdb() redis.UniversalClient {
return c.rdb
}

// NewClient return a new rockscache client
// for each key, rockscache client store a hash set,
// the hash set contains the following fields:
Expand Down

0 comments on commit b0fc0cf

Please sign in to comment.