Packages

final class ServerCommands[K, V] extends AnyRef

Exposes the set of redis **server** commands available.

Source
ServerCommands.scala
Note

Does yet not support clientCaching, clientGetredir, commandCount, clientKill, bgRewriteAOF.

See also

Server commands reference.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ServerCommands
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clientList: Task[Option[String]]

    Get the list of client connections.

    Get the list of client connections.

    returns

    A unique string, formatted as follows: One client connection per line (separated by LF), each line is composed of a succession of property=value fields separated by a space character.

    See also

    HVALS.

  6. def clientName: Task[Option[K]]

    Get the current connection name.

    Get the current connection name.

    returns

    The connection name, if set.

  7. def clientNameSet(name: K): Task[Unit]

    Set the current connection name.

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. def commandCount: Task[Long]

    Get total number of Redis commands.

    Get total number of Redis commands.

    returns

    Number of total commands in this Redis server, 0 if the underlying response was empty.

  10. def configGet(parameter: String): Task[Option[String]]

    Get the value of a configuration parameter.

    Get the value of a configuration parameter.

    returns

    Bulk string reply

    See also

    CONFIG GET.

  11. def configSet(parameter: String, value: String): Task[Unit]

    Set a configuration parameter to the given value.

    Set a configuration parameter to the given value. All the supported parameters have the same meaning. of the equivalent configuration parameter used in the https://raw.githubusercontent.com/redis/redis/6.0/redis.conf

    See also

    CONFIG SET.

  12. def dbSize: Task[Long]

    Get the number of keys in the selected database.

    Get the number of keys in the selected database.

    See also

    DBSIZE.

  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. def flushAll: Task[Unit]

    Remove all keys from all databases.

    Remove all keys from all databases.

    returns

    Simple string reply

    See also

    FLUSHALL.

  17. def flushDb: Task[Unit]

    Remove all keys from the current database.

    Remove all keys from the current database.

    returns

    Single string reply

    See also

    FLUSHDB.

  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def info(section: String): Task[String]

    Get the section information and statistics about the server as a collection of text lines.

    Get the section information and statistics about the server as a collection of text lines.

    See also

    INFO.

  21. def info: Task[String]

    Get information and statistics about the server as a collection of text lines.

    Get information and statistics about the server as a collection of text lines.

    See also

    INFO.

  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def lastSave: Task[Option[Date]]

    Get the Date of the last successful save to disk if any.

    Get the Date of the last successful save to disk if any.

    See also

    LASTSAVE.

  24. def memoryUsage(key: K): Task[Long]

    Number of bytes that a key and its value require to be stored in RAM.

    Number of bytes that a key and its value require to be stored in RAM.

    See also

    MEMORY STATS.

  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. def save: Task[Unit]

    Synchronously save the dataset to disk

    Synchronously save the dataset to disk

    See also

    SAVE.

  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped