mirror of
https://github.com/fluencelabs/redis
synced 2025-03-25 20:01:04 +00:00
15 lines
464 B
C
15 lines
464 B
C
|
/* This structure defines an entry inside the slow log list */
|
||
|
typedef struct slowlogEntry {
|
||
|
robj **argv;
|
||
|
int argc;
|
||
|
long long duration; /* Time spent by the query, in nanoseconds. */
|
||
|
time_t time; /* Unix time at which the query was executed. */
|
||
|
} slowlogEntry;
|
||
|
|
||
|
/* Exported API */
|
||
|
void slowlogInit(void);
|
||
|
void slowlogPushEntryIfNeeded(robj **argv, int argc, long long duration);
|
||
|
|
||
|
/* Exported commands */
|
||
|
void slowlogCommand(redisClient *c);
|