MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / rdbSaveMillisecondTime

Function rdbSaveMillisecondTime

src/rdb.cpp:132–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132int rdbSaveMillisecondTime(rio *rdb, long long t) {
133 int64_t t64 = (int64_t) t;
134 memrev64ifbe(&t64); /* Store in little endian. */
135 return rdbWriteRaw(rdb,&t64,8);
136}
137
138/* This function loads a time from the RDB file. It gets the version of the
139 * RDB because, unfortunately, before Redis 5 (RDB version 9), the function

Callers 4

rdbSaveStreamPELFunction · 0.85
rdbSaveStreamConsumersFunction · 0.85
rdbSaveObjectFunction · 0.85
rdbSaveKeyValuePairFunction · 0.85

Calls 1

rdbWriteRawFunction · 0.85

Tested by

no test coverage detected