t

scredis.commands

ScriptingCommands

trait ScriptingCommands extends AnyRef

This trait implements scripting commands.

Self Type
ScriptingCommands with NonBlockingConnection
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScriptingCommands
  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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def eval[R, W1, W2](script: String, keys: Seq[W1] = Nil, args: Seq[W2] = Nil)(implicit arg0: Decoder[R], arg1: Writer[W1], arg2: Writer[W2]): Future[R]

    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

    the LUA script

    keys

    keys to be used in the script

    args

    arguments to be used in the script

    Since

    2.6.0

    Exceptions thrown

    [[scredis.exceptions.RedisErrorResponseException]] if an error occurs while running the script

    [[scredis.exceptions.RedisProtocolException]] if the result could not be decoded by provided Decoder

  9. def evalSHA[R, W1, W2](sha1: String, keys: Seq[W1] = Nil, args: Seq[W2] = Nil)(implicit arg0: Decoder[R], arg1: Writer[W1], arg2: Writer[W2]): Future[R]

    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

    keys

    keys to be used in the script

    args

    arguments to be used in the script

    Since

    2.6.0

    Exceptions thrown

    [[scredis.exceptions.RedisErrorResponseException]] 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 result could not be decoded by provided Decoder

  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. def scriptExists(sha1s: String*): Future[Map[String, Boolean]]

    Checks existence of scripts in the script cache.

    Checks existence of scripts in the script cache.

    sha1s

    SHA1 digest(s) to check for existence

    returns

    SHA1 -> Boolean Map where true means the script associated to the sha1 exists in the cache

    Since

    2.6.0

  18. def scriptFlush(): Future[Unit]

    Removes all the scripts from the script cache.

    Removes all the scripts from the script cache.

    Since

    2.6.0

  19. def scriptKill(): 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.

  20. def scriptLoad(script: String): 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.RedisErrorResponseException]] if a compilation error occurs

    Note

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

  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped