]> git.saurik.com Git - redis.git/blame - src/slowlog.h
Comments about security of slave-read-only in redis.coinf.
[redis.git] / src / slowlog.h
CommitLineData
daa70b17 1/* This structure defines an entry inside the slow log list */
2typedef struct slowlogEntry {
3 robj **argv;
4 int argc;
2cb68284 5 long long id; /* Unique entry identifier. */
daa70b17 6 long long duration; /* Time spent by the query, in nanoseconds. */
7 time_t time; /* Unix time at which the query was executed. */
8} slowlogEntry;
9
10/* Exported API */
11void slowlogInit(void);
12void slowlogPushEntryIfNeeded(robj **argv, int argc, long long duration);
13
14/* Exported commands */
15void slowlogCommand(redisClient *c);