BaseKV contains base operations of kv. Include save, load and remove.
| 41 | |
| 42 | // BaseKV contains base operations of kv. Include save, load and remove. |
| 43 | type BaseKV interface { |
| 44 | Load(ctx context.Context, key string) (string, error) |
| 45 | MultiLoad(ctx context.Context, keys []string) ([]string, error) |
| 46 | LoadWithPrefix(ctx context.Context, key string) ([]string, []string, error) |
| 47 | Save(ctx context.Context, key, value string) error |
| 48 | MultiSave(ctx context.Context, kvs map[string]string) error |
| 49 | Remove(ctx context.Context, key string) error |
| 50 | MultiRemove(ctx context.Context, keys []string) error |
| 51 | RemoveWithPrefix(ctx context.Context, key string) error |
| 52 | Has(ctx context.Context, key string) (bool, error) |
| 53 | HasPrefix(ctx context.Context, prefix string) (bool, error) |
| 54 | Close() |
| 55 | } |
| 56 | |
| 57 | // TxnKV contains extra txn operations of kv. The extra operations is transactional. |
| 58 | // |
no outgoing calls
no test coverage detected
searching dependent graphs…