All Downloads are FREE. Search and download functionalities are using the official Maven repository.

redis.clients.jedis.commands.CommandCommands Maven / Gradle / Ivy

The newest version!
package redis.clients.jedis.commands;

import redis.clients.jedis.params.CommandListFilterByParams;
import redis.clients.jedis.resps.CommandDocument;
import redis.clients.jedis.resps.CommandInfo;
import redis.clients.jedis.util.KeyValue;

import java.util.List;
import java.util.Map;

public interface CommandCommands {

  /**
   * The number of total commands in this Redis server
   * @return The number of total commands
   */
  long commandCount();

  /**
   * Return documentary information about commands.
   * If not specifying commands, the reply includes all the server's commands.
   * @param commands specify the names of one or more commands
   * @return list of {@link CommandDocument}
   */

  Map commandDocs(String... commands);

  /**
   * Return list of keys from a full Redis command
   * @param command
   * @return list of keys
   */
  List commandGetKeys(String... command);

  /**
   * Return list of keys from a full Redis command and their usage flags
   * @param command
   * @return list of {@link KeyValue}
   */
  List>> commandGetKeysAndFlags(String... command);

  /**
   * Return details about multiple Redis commands
   * @param commands
   * @return list of {@link CommandInfo}
   */
  Map commandInfo(String... commands);

  /**
   * Return a list of the server's command names
   * @return commands list
   */
  List commandList();

  /**
   * Return a list of the server's command names filtered by module's name, ACL category or pattern
   * @param filterByParams {@link CommandListFilterByParams}
   * @return commands list
   */
  List commandListFilterBy(CommandListFilterByParams filterByParams);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy