2
0
mirror of https://github.com/boostorg/redis.git synced 2026-02-03 09:22:18 +00:00
Files
redis/include/aedis/command.hpp
Marcelo Zimbres 05aff2f3c6 Refactoring listed below:
- Improvements in the organization.
- Adds support for the default token on the consumer.
2021-10-10 15:26:06 +02:00

88 lines
1.2 KiB
C++

/* Copyright (c) 2019 - 2021 Marcelo Zimbres Silva (mzimbres at gmail dot com)
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
#pragma once
#include <ostream>
namespace aedis {
/// List of the supported redis commands.
enum class command
{ acl_load
, acl_save
, acl_list
, acl_users
, acl_getuser
, acl_setuser
, acl_deluser
, acl_cat
, acl_genpass
, acl_whoami
, acl_log
, acl_help
, append
, auth
, bgrewriteaof
, bgsave
, bitcount
, client_id
, del
, exec
, expire
, flushall
, get
, hello
, hget
, hgetall
, hincrby
, hkeys
, hlen
, hmget
, hset
, hvals
, hdel
, incr
, keys
, llen
, lpop
, lpush
, lrange
, ltrim
, multi
, ping
, psubscribe
, publish
, quit
, role
, rpush
, sadd
, scard
, sdiff
, sentinel
, set
, smembers
, subscribe
, unsubscribe
, zadd
, zrange
, zrangebyscore
, zremrangebyscore
, unknown
};
/// Converts the command to a string.
std::string to_string(command c);
/** Writes the text representation of the command to the output
* stream.
*/
std::ostream& operator<<(std::ostream& os, command c);
} // aedis