Documentation ¶
Overview ¶
* @Date: 2023-07-20 09:48:51 * @LastEditTime: 2023-07-20 09:48:52 * @Description:
Index ¶
- type Store
- func (r *Store) Get(ctx context.Context, key string) ([]byte, error)
- func (r *Store) MemberTagKey(ctx context.Context, tag, key string) (bool, error)
- func (r *Store) RemoveFromKey(ctx context.Context, key string) error
- func (r *Store) RemoveFromTag(ctx context.Context, tag string) error
- func (r *Store) RemoveTagKey(ctx context.Context, tag, key string) error
- func (r *Store) SaveTagKey(ctx context.Context, tag, key string) error
- func (r *Store) Set(ctx context.Context, key string, value any, ttl time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func NewWithDb ¶
func NewWithDb(tx *redis.Client) *Store
NewWithDb @param tx @date 2022-07-02 08:12:12
func (*Store) MemberTagKey ¶
MemberTagKey @param ctx @param tag @param key @date 2022-07-02 08:12:05
func (*Store) RemoveFromTag ¶
RemoveFromTag @param ctx @param tag @date 2022-07-02 08:12:08
func (*Store) RemoveTagKey ¶
RemoveTagKey @param ctx @param tag @param key @date 2022-07-02 08:12:05
func (*Store) SaveTagKey ¶
SaveTagKey @param ctx @param tag @param key @date 2022-07-02 08:12:05
Click to show internal directories.
Click to hide internal directories.