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. */
| 1070 | * this length with very little changes to the code. In the future |
| 1071 | * we could switch to a faster solution. */ |
| 1072 | size_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. |
no test coverage detected