Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DUMP Command Not Supported in Garnet #689

Open
michel-archambault-SSDC opened this issue Sep 25, 2024 · 2 comments
Open

DUMP Command Not Supported in Garnet #689

michel-archambault-SSDC opened this issue Sep 25, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@michel-archambault-SSDC

Describe the bug

I have a simple C# program that do a db.KeyDump(key), but I get an exception when connected to a Garnet server (instead of a Redis server). The exception message is "ERR unknown command".

Steps to reproduce the bug

Example of code:

Console.WriteLine("Connecting to \"{0}\" using port \"{1}\"...", _redisHost, _redisPort);

ConnectionMultiplexer connection = ConnectionMultiplexer.Connect(_redisHost + ":" + _redisPort);
IDatabase db = connection.GetDatabase();

SortedSet<string> allKeys = new SortedSet<string>();
int scanCursor = 0;
do
{
    RedisResult[] result = (RedisResult[])db.Execute("SCAN", new object[] { scanCursor.ToString() });
    scanCursor = Int32.Parse(result[0].ToString());
    foreach (string key in (string[])result[1])
    {
        allKeys.Add(key);
    }
} while (scanCursor != 0);


foreach (string key in allKeys)
{
    _keyValueDict[key] = db.KeyDump(key);
}

Expected behavior

KeyDump() working.

Screenshots

No response

Release version

v1.0.27

IDE

No response

OS version

No response

Additional context

No response

@xiaofeng-zheng
Copy link

https://microsoft.github.io/garnet/docs/commands/api-compatibility#command
DUMP is not implemented in Garnet.

@michel-archambault-SSDC
Copy link
Author

I hope it will be implemented one day.

@yrajas yrajas added enhancement New feature or request help wanted Extra attention is needed labels Sep 26, 2024
@TalZaccai TalZaccai changed the title Exception using db.KeyDump(key) ("ERR unknown command") DUMP Command Not Supported in Garnet Oct 1, 2024
@TalZaccai TalZaccai added the good first issue Good for newcomers label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants