trait ScriptingCommands extends AnyRef
This trait implements scripting commands.
- Self Type
- ScriptingCommands with NonBlockingConnection
- Alphabetic
- By Inheritance
- ScriptingCommands
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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 providedDecoder
- 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 providedDecoder
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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
- def scriptFlush(): Future[Unit]
Removes all the scripts from the script cache.
Removes all the scripts from the script cache.
- Since
2.6.0
- 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.
- 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).
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()