Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KVDB ¶
type KVDB interface { // Get will retrieve the key indexed data Get(ctx context.Context, key string) ([]byte, error) // Put will insert the data, indexed by key Put(ctx context.Context, key string, v []byte) error // Delete deletes the key and index data Delete(ctx context.Context, key string) error // List will list all keys with the given prefix List(ctx context.Context, prefix string) ([]string, error) // ListAsync returns a channel to list to listed keys ListAsync(ctx context.Context, prefix string) (chan string, error) // ListRegex will list all keys matching the given prefix, and regexs ListRegEx(ctx context.Context, prefix string, regexs ...string) ([]string, error) // ListRegexAsync will return a channel to list all regex matched keys ListRegExAsync(ctx context.Context, prefix string, regexs ...string) (chan string, error) // Batch creates a Batch interface of the current KVDB Batch(ctx context.Context) (Batch, error) // Sync syncs the KVDB key values Sync(ctx context.Context, key string) error Factory() Factory Stats() Stats // Closes the KVDB Close() }
Click to show internal directories.
Click to hide internal directories.