]> git.saurik.com Git - redis.git/blame - src/rdb.h
Abstract file/buffer I/O to support in-memory serialization
[redis.git] / src / rdb.h
CommitLineData
2e4b0e77
PN
1#ifndef __REDIS_RDB_H
2#define __REDIS_RDB_H
3
4#include <stdio.h>
5#include "rio.h"
6
7/* TBD: include only necessary headers. */
8#include "redis.h"
9
10int rdbLoad(char *filename);
11int rdbSaveBackground(char *filename);
12void rdbRemoveTempFile(pid_t childpid);
13int rdbSave(char *filename);
14int rdbSaveObject(rio *rdb, robj *o);
15off_t rdbSavedObjectLen(robj *o);
16off_t rdbSavedObjectPages(robj *o);
17robj *rdbLoadObject(int type, rio *rdb);
18void backgroundSaveDoneHandler(int exitcode, int bysignal);
19int rdbSaveKeyValuePair(rio *rdb, robj *key, robj *val, time_t expireitme, time_t now);
20int rdbLoadType(rio *rdb);
21time_t rdbLoadTime(rio *rdb);
22robj *rdbLoadStringObject(rio *rdb);
23int rdbSaveType(rio *rdb, unsigned char type);
24int rdbSaveLen(rio *rdb, uint32_t len);
25
26#endif