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
2021-10-24 19:46:17 +02:00

126 lines
2.7 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
/// https://redis.io/commands/append
, append
/// https://redis.io/commands/bgrewriteaof
, auth
/// https://redis.io/commands/bgrewriteaof
, bgrewriteaof
/// https://redis.io/commands/bgsave
, bgsave
/// Adds ping to the request, see https://redis.io/commands/bitcount
, bitcount
/// https://redis.io/commands/client_id
, client_id
/// https://redis.io/commands/del
, del
, exec
/// https://redis.io/commands/expire
, expire
/// https://redis.io/commands/flushall
, flushall
/// https://redis.io/commands/get
, get
/// https://redis.io/commands/hello
, hello
/// https://redis.io/commands/hget
, hget
/// https://redis.io/commands/hgetall
, hgetall
/// https://redis.io/commands/hincrby
, hincrby
/// https://redis.io/commands/hkeys
, hkeys
/// https://redis.io/commands/hlen
, hlen
/// https://redis.io/commands/hmget
, hmget
/// https://redis.io/commands/hset
, hset
/// https://redis.io/commands/hvals
, hvals
/// https://redis.io/commands/hdel
, hdel
, incr
/// https://redis.io/commands/keys
, keys
/// https://redis.io/commands/llen
, llen
/// https://redis.io/commands/lpop
, lpop
/// https://redis.io/commands/lpush
, lpush
/// https://redis.io/commands/lrange
, lrange
/// https://redis.io/commands/ltrim
, ltrim
, multi
, ping
, psubscribe
/// https://redis.io/commands/publish
, publish
, quit
/// https://redis.io/commands/role
, role
/// Adds ping to the request, see https://redis.io/commands/rpush
, rpush
/// https://redis.io/commands/sadd
, sadd
/// https://redis.io/commands/scard
, scard
, sdiff
/// https://redis.io/commands/sentinel
, sentinel
/// Adds ping to the request, see https://redis.io/commands/set
, set
/// https://redis.io/commands/smembers
, smembers
, subscribe
/// https://redis.io/commands/unsubscribe
, unsubscribe
/// https://redis.io/commands/zadd
, zadd
, zrange
/// https://redis.io/commands/zrangebyscore
, zrangebyscore
/// https://redis.io/commands/zremrangebyscore
, zremrangebyscore
, unknown
};
/// Converts the command to a string.
char const* as_string(command c);
/** Writes the text representation of the command to the output
* stream.
*/
std::ostream& operator<<(std::ostream& os, command c);
} // aedis