If a string is ":deleted:", the special value for deleted hash fields is * returned; otherwise the input string is returned. */
| 6 | /* If a string is ":deleted:", the special value for deleted hash fields is |
| 7 | * returned; otherwise the input string is returned. */ |
| 8 | static RedisModuleString *value_or_delete(RedisModuleString *s) { |
| 9 | if (!strcasecmp(RedisModule_StringPtrLen(s, NULL), ":delete:")) |
| 10 | return REDISMODULE_HASH_DELETE; |
| 11 | else |
| 12 | return s; |
| 13 | } |
| 14 | |
| 15 | /* HASH.SET key flags field1 value1 [field2 value2 ..] |
| 16 | * |
no test coverage detected