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

Function dictSdsKeyCompare

app/redis-6.2.6/src/server.c:1259–1269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1257}
1258
1259int dictSdsKeyCompare(void *privdata, const void *key1,
1260 const void *key2)
1261{
1262 int l1,l2;
1263 DICT_NOTUSED(privdata);
1264
1265 l1 = sdslen((sds)key1);
1266 l2 = sdslen((sds)key2);
1267 if (l1 != l2) return 0;
1268 return memcmp(key1, key2, l1) == 0;
1269}
1270
1271/* A case insensitive version used for the command lookup table and other
1272 * places where case insensitive non binary-safe comparison is needed. */

Callers 2

dictObjKeyCompareFunction · 0.70
dictEncObjKeyCompareFunction · 0.70

Calls 1

sdslenFunction · 0.85

Tested by

no test coverage detected