class Redis extends AnyRef
A simple Redis client.
- Alphabetic
- By Inheritance
- Redis
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Redis(_asJava: AnyRef)
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 asJava: AnyRef
-
def
batch(commands: Buffer[Request], onSend: Handler[AsyncResult[Buffer[Option[Response]]]]): Redis
Sends a list of commands in a single IO operation, this prevents any inter twinning to happen from other client users.
Sends a list of commands in a single IO operation, this prevents any inter twinning to happen from other client users. * @param commands list of command to send
- onSend
the asynchronous result handler.
- returns
fluent self.
-
def
batchFuture(commands: Buffer[Request]): Future[Buffer[Option[Response]]]
Like batch but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
close(): Unit
Closes the client and terminates any connection.
-
def
connect(handler: Handler[AsyncResult[RedisConnection]]): Redis
Connects to the redis server.
Connects to the redis server. * @param handler the async result handler
- returns
a reference to this, so the API can be used fluently
-
def
connectFuture(): Future[RedisConnection]
Like connect but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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
send(command: Request, onSend: Handler[AsyncResult[Option[Response]]]): Redis
Send the given command to the redis server or cluster.
Send the given command to the redis server or cluster. * @param command the command to send
- onSend
the asynchronous result handler.
- returns
fluent self.
-
def
sendFuture(command: Request): Future[Option[Response]]
Like send but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )