支持以业务为单位,配置文件不持久化到本地
This commit is contained in:
18
server/doris_server_kvdb.h
Normal file
18
server/doris_server_kvdb.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef __DORIS_KVDB_H__
|
||||
#define __DORIS_KVDB_H__
|
||||
|
||||
struct doris_kvhandle;
|
||||
|
||||
struct doris_kvhandle *doris_kvdb_hanlde_new(const char *dir);
|
||||
void doris_kvdb_handle_destroy(struct doris_kvhandle *handle);
|
||||
|
||||
bool doris_kvdb_update_keyint_valint(struct doris_kvhandle *handle, u_int64_t key, int64_t value);
|
||||
bool doris_kvdb_update_keystr_valint(struct doris_kvhandle *handle, const char *key, int64_t value);
|
||||
|
||||
int doris_kvdb_delete_keyint(struct doris_kvhandle *handle, u_int64_t key);
|
||||
int doris_kvdb_delete_keystr(struct doris_kvhandle *handle, const char *key);
|
||||
|
||||
int64_t doris_kvdb_get_keyint_valint(struct doris_kvhandle *handle, u_int64_t key);
|
||||
int64_t doris_kvdb_get_keystr_valint(struct doris_kvhandle *handle, const char *key);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user