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

Function rdbSaveAuxFieldStrInt

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

Wrapper for strlen(key) + integer type (up to long long range). */

Source from the content-addressed store, hash-verified

1140
1141/* Wrapper for strlen(key) + integer type (up to long long range). */
1142ssize_t rdbSaveAuxFieldStrInt(rio *rdb, char *key, long long val) {
1143 char buf[LONG_STR_SIZE];
1144 int vlen = ll2string(buf,sizeof(buf),val);
1145 return rdbSaveAuxField(rdb,key,strlen(key),buf,vlen);
1146}
1147
1148/* Save a few default AUX fields with information about the RDB generated. */
1149int rdbSaveInfoAuxFields(rio *rdb, int rdbflags, rdbSaveInfo *rsi) {

Callers 1

rdbSaveInfoAuxFieldsFunction · 0.85

Calls 2

ll2stringFunction · 0.85
rdbSaveAuxFieldFunction · 0.85

Tested by

no test coverage detected