mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 08:41:21 +00:00
COW friendly versions of SPOP and SRANDMEMBER commands, with some change to the set encoding-agnostic API.
This commit is contained in:
@ -10,7 +10,7 @@ typedef struct intset {
|
||||
|
||||
intset *intsetNew(void);
|
||||
intset *intsetAdd(intset *is, int64_t value, uint8_t *success);
|
||||
intset *intsetRemove(intset *is, int64_t value, uint8_t *success);
|
||||
intset *intsetRemove(intset *is, int64_t value, int *success);
|
||||
uint8_t intsetFind(intset *is, int64_t value);
|
||||
int64_t intsetRandom(intset *is);
|
||||
uint8_t intsetGet(intset *is, uint32_t pos, int64_t *value);
|
||||
|
Reference in New Issue
Block a user