Sends commands and runs scripts.
Functions#
send#
send(command, *args) -> Effect[RedisReply, RedisError]Send command with args and give its reply.
| Parameter | Type | Description |
|---|---|---|
command | str | |
args | str = () |
Returns Effect[RedisReply, RedisError]
def send(self, command: str, *args: str) -> Effect[RedisReply, RedisError]:
"""Send ``command`` with ``args`` and give its reply."""
...eval#
eval[**P, A](script) -> Callable[P, Effect[A, RedisError]]A function running script with EVALSHA, loading it first
(and again when Redis answers NOSCRIPT).
| Parameter | Type | Description |
|---|---|---|
script | Script[P, A] |
Returns Callable[P, Effect[A, RedisError]]
def eval[**P, A](self, script: Script[P, A]) -> Callable[P, Effect[A, RedisError]]:
"""A function running ``script`` with ``EVALSHA``, loading it first
(and again when Redis answers ``NOSCRIPT``)."""
...