dragonfly/src/server/bitops_family.h
Boaz Sade 1733af4cf6
feat(server): bitcount commands support and unit tests
feat(server): bitcount commands support and unit tests - 

update docs/api_status.md, update license 
Partially implements #213 

Signed-off-by: Boaz Sade <boaz@dragonflydb.io>
Co-authored-by: Boaz Sade <boaz@dragonflydb.io>
2022-09-20 11:07:26 +03:00

30 lines
1.1 KiB
C++

// Copyright 2022, DragonflyDB authors. 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