scredis.commands.async

ScriptingCommands

trait ScriptingCommands extends Async

This trait implements asynchronous scripting commands.

Linear Supertypes
Async, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ScriptingCommands
  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 clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  10. def eval[A](script: String)(as: (As) ⇒ (Char, Array[Byte]) ⇒ A)(implicit opts: CommandOptions = DefaultCommandOptions): Future[A]

    Executes a Lua script that does not require any keys or arguments.

    Executes a Lua script that does not require any keys or arguments.

    script

    set key

    as

    result handler

    Since

    2.6.0

    Exceptions thrown
    [[scredis.exceptions.RedisCommandException]]

    if an error occurs while running the script

    [[scredis.exceptions.RedisProtocolException]]

    if the value returned by the script does not match with the result handler

  11. def evalSha[A](sha1: String)(as: (As) ⇒ (Char, Array[Byte]) ⇒ A)(implicit opts: CommandOptions = DefaultCommandOptions): Future[A]

    Executes a cached Lua script that does not require any keys or arguments by its SHA1 digest.

    Executes a cached Lua script that does not require any keys or arguments by its SHA1 digest.

    sha1

    the SHA1 digest

    as

    result handler

    Since

    2.6.0

    Exceptions thrown
    [[scredis.exceptions.RedisCommandException]]

    if there is no script corresponding to the provided SHA1 digest or if an error occurs while running the script

    [[scredis.exceptions.RedisProtocolException]]

    if the value returned by the script does not match with the result handler

  12. def evalShaWithArgs[A](sha1: String)(args: Any*)(as: (As) ⇒ (Char, Array[Byte]) ⇒ A)(implicit opts: CommandOptions = DefaultCommandOptions): Future[A]

    Executes a cached Lua script with arguments by its SHA1 digest.

    Executes a cached Lua script with arguments by its SHA1 digest.

    sha1

    the SHA1 digest

    args

    arguments to be used in the script

    as

    result handler

    Since

    2.6.0

    Exceptions thrown
    [[scredis.exceptions.RedisCommandException]]

    if there is no script corresponding to the provided SHA1 digest or if an error occurs while running the script

    [[scredis.exceptions.RedisProtocolException]]

    if the value returned by the script does not match with the result handler

  13. def evalShaWithKeys[A](sha1: String)(keys: String*)(as: (As) ⇒ (Char, Array[Byte]) ⇒ A)(implicit opts: CommandOptions = DefaultCommandOptions): Future[A]

    Executes a cached Lua script with keys parameter by its SHA1 digest.

    Executes a cached Lua script with keys parameter by its SHA1 digest.

    sha1

    the SHA1 digest

    keys

    keys to be used in the script

    as

    result handler

    Since

    2.6.0

    Exceptions thrown
    [[scredis.exceptions.RedisCommandException]]

    if there is no script corresponding to the provided SHA1 digest or if an error occurs while running the script

    [[scredis.exceptions.RedisProtocolException]]

    if the value returned by the script does not match with the result handler

  14. def evalShaWithKeysAndArgs[A](sha1: String)(keys: String*)(args: Any*)(as: (As) ⇒ (Char, Array[Byte]) ⇒ A)(implicit opts: CommandOptions = DefaultCommandOptions): Future[A]

    Executes a cached Lua script with keys and arguments by its SHA1 digest.

    Executes a cached Lua script with keys and arguments by its SHA1 digest.

    sha1

    the SHA1 digest

    keys

    keys to be used in the script

    args

    arguments to be used in the script

    as

    result handler

    Since

    2.6.0

    Exceptions thrown
    [[scredis.exceptions.RedisCommandException]]

    if there is no script corresponding to the provided SHA1 digest or if an error occurs while running the script

    [[scredis.exceptions.RedisProtocolException]]

    if the value returned by the script does not match with the result handler

  15. def evalWithArgs[A](script: String)(args: Any*)(as: (As) ⇒ (Char, Array[Byte]) ⇒ A)(implicit opts: CommandOptions = DefaultCommandOptions): Future[A]

    Executes a Lua script with arguments.

    Executes a Lua script with arguments.

    script

    set key

    args

    arguments to be used in the script

    as

    result handler

    Since

    2.6.0

    Exceptions thrown
    [[scredis.exceptions.RedisCommandException]]

    if an error occurs while running the script

    [[scredis.exceptions.RedisProtocolException]]

    if the value returned by the script does not match with the result handler

  16. def evalWithKeys[A](script: String)(keys: String*)(as: (As) ⇒ (Char, Array[Byte]) ⇒ A)(implicit opts: CommandOptions = DefaultCommandOptions): Future[A]

    Executes a Lua script with keys parameter.

    Executes a Lua script with keys parameter.

    script

    set key

    keys

    keys to be used in the script

    as

    result handler

    Since

    2.6.0

    Exceptions thrown
    [[scredis.exceptions.RedisCommandException]]

    if an error occurs while running the script

    [[scredis.exceptions.RedisProtocolException]]

    if the value returned by the script does not match with the result handler

  17. def evalWithKeysAndArgs[A](script: String)(keys: String*)(args: Any*)(as: (As) ⇒ (Char, Array[Byte]) ⇒ A)(implicit opts: CommandOptions = DefaultCommandOptions): Future[A]

    Executes a Lua script with keys and arguments.

    Executes a Lua script with keys and arguments.

    script

    set key

    keys

    keys to be used in the script

    args

    arguments to be used in the script

    as

    result handler

    Since

    2.6.0

    Exceptions thrown
    [[scredis.exceptions.RedisCommandException]]

    if an error occurs while running the script

    [[scredis.exceptions.RedisProtocolException]]

    if the value returned by the script does not match with the result handler

  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  25. def scriptExists(sha1: String, sha1s: String*)(implicit opts: CommandOptions = DefaultCommandOptions): Future[IndexedSeq[Boolean]]

    Checks existence of scripts in the script cache.

    Checks existence of scripts in the script cache.

    sha1

    the SHA1 digest to check for

    sha1s

    additional digests to check for

    returns

    indexed sequence of booleans where true means the script is in the cache

    Since

    2.6.0

  26. def scriptFlush()(implicit opts: CommandOptions = DefaultCommandOptions): Future[Unit]

    Removes all the scripts from the script cache.

    Removes all the scripts from the script cache.

    Since

    2.6.0

  27. def scriptKill()(implicit opts: CommandOptions = DefaultCommandOptions): Future[Unit]

    Kills the currently executing Lua script, assuming no write operation was yet performed by the script.

    Kills the currently executing Lua script, assuming no write operation was yet performed by the script.

    Since

    2.6.0

    Note

    If the script already performed write operations it can not be killed in this way because it would violate Lua script atomicity contract. In such a case only SHUTDOWN NOSAVE is able to kill the script, killing the Redis process in an hard way preventing it to persist with half-written information.

  28. def scriptLoad(script: String)(implicit opts: CommandOptions = DefaultCommandOptions): Future[String]

    Loads or stores the specified Lua script into the script cache.

    Loads or stores the specified Lua script into the script cache.

    script

    the script to be loaded into the cache

    returns

    the SHA1 digest of the stored script

    Since

    2.6.0

    Exceptions thrown
    [[scredis.exceptions.RedisCommandException]]

    if a compilation error occurs

    Note

    The script is guaranteed to stay in the script cache forever (unless SCRIPT FLUSH is called).

  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( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Async

Inherited from AnyRef

Inherited from Any

Ungrouped