Factory method to return a set that *can* hold "value". When the object has * an integer-encodable value, an intset will be returned. Otherwise a regular * hash table. */
| 40 | * an integer-encodable value, an intset will be returned. Otherwise a regular |
| 41 | * hash table. */ |
| 42 | robj *setTypeCreate(const char *value) { |
| 43 | if (isSdsRepresentableAsLongLong(value,NULL) == C_OK) |
| 44 | return createIntsetObject(); |
| 45 | return createSetObject(); |
| 46 | } |
| 47 | |
| 48 | /* Add the specified value into a set. |
| 49 | * |
no test coverage detected