mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-12 02:45:45 +02:00
feat(server): Allow configuration of hashtag extraction (#2890)
* feat(server): Allow configuration of hashtag extraction Before this PR: Hashtags, if enabled, meant the text between `{` and `}` in the key (if exists and non-empty). After this PR: * Hashtags can _still_ be enabled / disabled * Hashtag open / close char can be specified (and can be the same), like `:` popular with BullMQ * Hashtag can include `N` closing tags to skip, like `{a}b}c}d` with `2` will return `a}b}c`. This will allow some existing systems to migrate without code changes in client code.
This commit is contained in:
parent
f6f7cfb2c9
commit
256e07f8ba
8 changed files with 128 additions and 31 deletions
|
@ -20,6 +20,9 @@ using namespace facade;
|
|||
using util::fb2::Fiber;
|
||||
using util::fb2::Launch;
|
||||
|
||||
// Test hook defined in common.cc.
|
||||
void TEST_InvalidateLockTagOptions();
|
||||
|
||||
class TestConnection : public facade::Connection {
|
||||
public:
|
||||
TestConnection(Protocol protocol, io::StringSink* sink);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue