added Command::keys()

added Command::keys()

АвторGünter Obiltschnig
КоммитерGünter Obiltschnig
3 года назад
Файлов изменено: 2
+13
–0
3e14d40
Родители 6628c17 poco-1.11.6
Redis/include/.../Command.h
@@ -132,6 +132,9 @@
    static Command incr(const std::string& key, Int64 by 0);
        /// Creates and returns an INCR or INCRBY command. Calls INCR when by is omitted or zero.
    static Command keys(const std::string& pattern);
        /// Creates and returns a KEYS command.
    static Command lindex(const std::string& list, Int64 index 0);
        /// Creates and returns a LINDEX command.
Redis/src/Command.cpp
@@ -269,6 +269,16 @@
}
Command Command::keys(const std::string& pattern)
{
    Command cmd("KEYS");
    cmd << pattern;
    return cmd;
}
Command Command::incr(const std::string& key, Int64 by)
{
    Command cmd(by == 0 ? "INCR" : "INCRBY");

Cherry-pick

Команда cherry-pick позволяет выбрать отдельные коммиты из одной ветки и применить их к другой.