Documentation
¶
Index ¶
- type DragonflyConfig
- type DragonflyStore
- func (ds *DragonflyStore) Close() error
- func (ds *DragonflyStore) Delete(ctx context.Context, key string) error
- func (ds *DragonflyStore) Exists(ctx context.Context, key string) (bool, error)
- func (ds *DragonflyStore) Get(ctx context.Context, key string) (string, error)
- func (ds *DragonflyStore) HDel(ctx context.Context, key string, field string) error
- func (ds *DragonflyStore) HGet(ctx context.Context, key string, field string) (string, error)
- func (ds *DragonflyStore) HGetAll(ctx context.Context, key string) (map[string]string, error)
- func (ds *DragonflyStore) HSet(ctx context.Context, key string, field string, value string) error
- func (ds *DragonflyStore) LPush(ctx context.Context, key string, value string) error
- func (ds *DragonflyStore) LRange(ctx context.Context, key string, start, stop int64) ([]string, error)
- func (ds *DragonflyStore) Set(ctx context.Context, key string, value string, expiration time.Duration) error
- func (ds *DragonflyStore) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DragonflyConfig ¶
type DragonflyStore ¶
type DragonflyStore struct {
// contains filtered or unexported fields
}
func NewDragonflyStore ¶
func NewDragonflyStore(config *DragonflyConfig) *DragonflyStore
func (*DragonflyStore) Close ¶
func (ds *DragonflyStore) Close() error
func (*DragonflyStore) Delete ¶
func (ds *DragonflyStore) Delete(ctx context.Context, key string) error
func (*DragonflyStore) Set ¶
func (ds *DragonflyStore) Set(ctx context.Context, key string, value string, expiration time.Duration) error
Implement Store interface
func (*DragonflyStore) Type ¶
func (ds *DragonflyStore) Type() string
Click to show internal directories.
Click to hide internal directories.