trait RedisExecutor extends AnyRef
Base trait for Redis clients with ability to execute RedisBatches.
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- RedisExecutor
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
-
abstract
def
executeBatch[A](batch: RedisBatch[A], config: ExecutionConfig = ExecutionConfig.Default): commons.Future[A]
Executes a RedisBatch.
Executes a RedisBatch. Redis client implementations (e.g. RedisNodeClient) implement this method by actually sending the batch to Redis server and receving and decoding the response.
WARNING: Even though the signature of this method indicates that any batch can be executed, every client type supports only a subset of commands. For example, you can't execute
CLIENT SETNAME
(clientSetname) on a RedisNodeClient because it's a connection state changing command and RedisNodeClient uses a pool of reusable connections. If you try to do this, you'll get a ForbiddenCommandException. - implicit abstract def executionContext: commons.ExecutionContext