Documentation
¶
Index ¶
- func List[T cachestore.Record](rc *Client, nr T) ([]T, error)
- type Client
- func (rc *Client) CompareAndDelete(nr cachestore.Record, ...) (bool, error)
- func (rc *Client) Del(nr cachestore.Record) error
- func (rc *Client) Get(nr cachestore.Record) error
- func (rc *Client) GetRaw() *redis.Client
- func (rc *Client) ResetClient(realDbClient *redis.Client)
- func (rc *Client) Set(nr cachestore.Record, expireAfterInSec int64) error
- func (rc *Client) Update(nr cachestore.Record) error
- func (rc *Client) Where(query string) *Client
- type Config
- type RecordUnmarshaler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewTestClient ¶
func (*Client) CompareAndDelete ¶
func (rc *Client) CompareAndDelete(nr cachestore.Record, compareValueFunc func(cachestore.Record, cachestore.Record) bool) (bool, error)
func (*Client) Get ¶
func (rc *Client) Get(nr cachestore.Record) error
TODO remove reflect, return (Record, error) TODO support to define key with tag, then no need to call Where
func (*Client) ResetClient ¶
func (rc *Client) ResetClient(realDbClient *redis.Client)
type RecordUnmarshaler ¶
Click to show internal directories.
Click to hide internal directories.