scredis.commands.async

ServerCommands

trait ServerCommands extends Async

This trait implements asynchronous server commands.

Linear Supertypes
Async, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ServerCommands
  2. Async
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val DefaultCommandOptions: CommandOptions

    Attributes
    protected
    Definition Classes
    Async
  2. abstract def async[A](body: (Client) ⇒ A)(implicit opts: CommandOptions): Future[A]

    Attributes
    protected
    Definition Classes
    Async

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def bgRewriteAOF()(implicit opts: CommandOptions = DefaultCommandOptions): Future[Unit]

    Asynchronously rewrites the append-only file.

    Asynchronously rewrites the append-only file.

    Since

    1.0.0

  8. def bgSave()(implicit opts: CommandOptions = DefaultCommandOptions): Future[Unit]

    Asynchronously saves the dataset to disk.

    Asynchronously saves the dataset to disk.

    Since

    1.0.0

    Exceptions thrown
    [[scredis.exceptions.RedisCommandException]]

    if the background save is already in progress

  9. def clientGetName()(implicit opts: CommandOptions = DefaultCommandOptions): Future[Option[String]]

    Get the current client name.

    Get the current client name.

    returns

    option containing the name if it has been set, None otherwise

    Since

    2.6.9

  10. def clientKill(addr: String)(implicit opts: CommandOptions = DefaultCommandOptions): Future[Unit]

    Kills the connection of a client.

    Kills the connection of a client.

    addr

    string containing ip and port separated by colon, i.e. "ip:port"

    Since

    2.4.0

    Exceptions thrown
    RedisCommandException

    if the the client does not exist

  11. def clientKillFromIpPort(ip: String, port: Int)(implicit opts: CommandOptions = DefaultCommandOptions): Future[Unit]

    Kills the connection of a client.

    Kills the connection of a client.

    ip

    ip address of the target client

    port

    port of the target client

    Since

    2.4.0

    Exceptions thrown
    RedisCommandException

    if the the client does not exist

  12. def clientList()(implicit opts: CommandOptions = DefaultCommandOptions): Future[List[Map[String, String]]]

    Gets the list of client connections.

    Gets the list of client connections.

    returns

    list of clients

    Since

    2.4.0

  13. def clientListRaw()(implicit opts: CommandOptions = DefaultCommandOptions): Future[String]

    Gets the list of client connections.

    Gets the list of client connections.

    returns

    raw string containing the list of clients as returned by Redis

    Since

    2.4.0

  14. def clientSetName(name: String)(implicit opts: CommandOptions = DefaultCommandOptions): Future[Unit]

    Sets the current client name.

    Sets the current client name. If the empty string is provided, the name will be unset.

    name

    name to associate the client to, if empty, unsets the client name

    Since

    2.6.9

  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def configGet(pattern: String = "*")(implicit opts: CommandOptions = DefaultCommandOptions): Future[Option[Map[String, Option[String]]]]

    Gets the value of a configuration parameter.

    Gets the value of a configuration parameter.

    pattern

    name or pattern of the configuration parameter to get

    returns

    option containing the matched parameters, or None if no parameters are matched

    Since

    2.0.0

  17. def configResetStat()(implicit opts: CommandOptions = DefaultCommandOptions): Future[Unit]

    Resets the stats returned by INFO.

    Resets the stats returned by INFO.

    Since

    2.0.0

  18. def configSet(key: String, value: Any)(implicit opts: CommandOptions = DefaultCommandOptions): Future[Unit]

    Sets a configuration parameter to the given value.

    Sets a configuration parameter to the given value.

    key

    parameter's name

    value

    value to set parameter to

    Since

    2.0.0

    Exceptions thrown
    [[scredis.exceptions.RedisCommandException]]

    if the parameter could not be set

  19. def dbSize()(implicit opts: CommandOptions = DefaultCommandOptions): Future[Long]

    Return the number of keys in the selected database.

    Return the number of keys in the selected database.

    returns

    number of keys in the selected database

    Since

    1.0.0

  20. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def flushAll()(implicit opts: CommandOptions = DefaultCommandOptions): Future[Unit]

    Removes all keys from all databases.

    Removes all keys from all databases.

    Since

    1.0.0

  24. def flushDb()(implicit opts: CommandOptions = DefaultCommandOptions): Future[Unit]

    Removes all keys from the current database.

    Removes all keys from the current database.

    Since

    1.0.0

  25. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  27. def info()(implicit opts: CommandOptions = DefaultCommandOptions): Future[Map[String, String]]

    Gets information and statistics about the server.

    Gets information and statistics about the server.

    returns

    map of field -> value pairs

    Since

    1.0.0

  28. def infoBySection(section: String = "default")(implicit opts: CommandOptions = DefaultCommandOptions): Future[Map[String, String]]

    Gets information and statistics about the server.

    Gets information and statistics about the server.

    section

    name of the section for which data should be retrieved

    returns

    map of field -> value pairs that match the specified section, or an empty map if the section does not exist

    Since

    2.6.0

  29. def infoBySectionRaw(section: String = "default")(implicit opts: CommandOptions = DefaultCommandOptions): Future[String]

    Gets information and statistics about the server.

    Gets information and statistics about the server.

    section

    name of the section for which data should be retrieved

    returns

    raw string containing lines of field:value pairs that match the specified section, as returned by Redis, or an empty string if the section does not exist

    Since

    2.6.0

  30. def infoRaw()(implicit opts: CommandOptions = DefaultCommandOptions): Future[String]

    Gets information and statistics about the server.

    Gets information and statistics about the server.

    returns

    raw string containing lines of field:value pairs as returned by Redis

    Since

    1.0.0

  31. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  32. def lastSave()(implicit opts: CommandOptions = DefaultCommandOptions): Future[Long]

    Gets the UNIX timestamp of the last successful save to disk.

    Gets the UNIX timestamp of the last successful save to disk.

    returns

    UNIX timestamp

    Since

    1.0.0

  33. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  34. final def notify(): Unit

    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  36. def save()(implicit opts: CommandOptions = DefaultCommandOptions): Future[Unit]

    Synchronously saves the dataset to disk.

    Synchronously saves the dataset to disk.

    Since

    1.0.0

  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  38. def time()(implicit opts: CommandOptions = DefaultCommandOptions): Future[(Long, Long)]

    Returns the current server time.

    Returns the current server time.

    returns

    pair of longs containing (1) UNIX timestamp and (2) microseconds

    Since

    2.6.0

  39. def toString(): String

    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Async

Inherited from AnyRef

Inherited from Any

Ungrouped