dragonfly/src/server/bitops_family.h
Boaz Sade 6ec453a599
feat(server): adding support for bitops #213 (#295)
feat(server): bitset bitget commands - update docs/api_status.md #213

Signed-off-by: Boaz Sade <boaz@dragonflydb.io>
2022-09-18 16:20:51 +03:00

30 lines
1.1 KiB
C++

// Copyright 2021, Roman Gershman. All rights reserved.
// See LICENSE for licensing terms.
//
#pragma once
/// @brief This would implement bits related string commands: GETBIT, SETBIT, BITCOUNT, BITOP.
/// Note: The name of this derive from the same file name in Redis source code.
/// For more details about these command see:
/// BITPOS: https://redis.io/commands/bitpos/
/// BITCOUNT: https://redis.io/commands/bitcount/
/// BITFIELD: https://redis.io/commands/bitfield/
/// BITFIELD_RO: https://redis.io/commands/bitfield_ro/
/// BITOP: https://redis.io/commands/bitop/
/// GETBIT: https://redis.io/commands/getbit/
/// SETBIT: https://redis.io/commands/setbit/
namespace dfly {
class CommandRegistry;
class BitOpsFamily {
public:
/// @brief Register the function that would be called to operate on user commands.
/// @param registry The location to which the handling functions would be registered.
///
/// We are assuming that this would have a valid registry to work on (i.e this do not point to
/// null!).
static void Register(CommandRegistry* registry);
};
} // end of namespace dfly