MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rdbSavedObjectLen

Function rdbSavedObjectLen

app/redis-6.2.6/src/rdb.c:1072–1076  ·  view source on GitHub ↗

Return the length the object will have on disk if saved with * the rdbSaveObject() function. Currently we use a trick to get * this length with very little changes to the code. In the future * we could switch to a faster solution. */

Source from the content-addressed store, hash-verified

1070 * this length with very little changes to the code. In the future
1071 * we could switch to a faster solution. */
1072size_t rdbSavedObjectLen(robj *o, robj *key) {
1073 ssize_t len = rdbSaveObject(NULL,o,key);
1074 serverAssertWithInfo(NULL,o,len != -1);
1075 return len;
1076}
1077
1078/* Save a key-value pair, with expire time, type, key, value.
1079 * On error -1 is returned.

Callers 1

debugCommandFunction · 0.85

Calls 1

rdbSaveObjectFunction · 0.85

Tested by

no test coverage detected