Class

com.adendamedia.salad

SaladClusterAPI

Related Doc: package salad

Permalink

class SaladClusterAPI[EK, EV] extends SaladClusterCommands[EK, EV, RedisClusterAsyncCommands[EK, EV]] with SaladKeyCommandsImpl[EK, EV, RedisKeyAsyncCommands[EK, EV]] with SaladServerCommandsImpl[EK, EV, RedisServerAsyncCommands[EK, EV]]

Wrap the lettuce cluster-administration API to provide an idiomatic Scala API.

EK

The key storage encoding.

EV

The value storage encoding.

Linear Supertypes
SaladServerCommandsImpl[EK, EV, RedisServerAsyncCommands[EK, EV]], SaladServerCommands[EK, EK, RedisServerAsyncCommands[EK, EV]], SaladKeyCommandsImpl[EK, EV, RedisKeyAsyncCommands[EK, EV]], SaladKeyCommands[EK, EV, RedisKeyAsyncCommands[EK, EV]], SaladClusterCommands[EK, EV, RedisClusterAsyncCommands[EK, EV]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SaladClusterAPI
  2. SaladServerCommandsImpl
  3. SaladServerCommands
  4. SaladKeyCommandsImpl
  5. SaladKeyCommands
  6. SaladClusterCommands
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SaladClusterAPI(underlying: RedisClusterAsyncCommands[EK, EV])

    Permalink

    underlying

    The lettuce async API to be wrapped.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def canonicalizeURI(redisURI: RedisURI): RedisURI

    Permalink

    Redis cluster can resolve ip addresses but it cannot resolve hostnames.

    Redis cluster can resolve ip addresses but it cannot resolve hostnames.

    redisURI

    The URI to convert to an ip address resolvable from this node.

    returns

    The canonicalized URI.

    Definition Classes
    SaladClusterCommands
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def clusterAddSlot(slot: Int)(implicit executionContext: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    SaladClusterCommands
  8. def clusterCountKeysInSlot(slot: Int)(implicit executionContext: ExecutionContext): Future[Long]

    Permalink
    Definition Classes
    SaladClusterCommands
  9. def clusterDelSlot(slot: Int)(implicit executionContext: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    SaladClusterCommands
  10. def clusterFailover(force: Boolean = false)(implicit executionContext: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    SaladClusterCommands
  11. def clusterForget(nodeId: String)(implicit executionContext: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    SaladClusterCommands
  12. def clusterGetKeysInSlot[DK](slot: Int, count: Int)(implicit keySerde: Serde[DK, EK], executionContext: ExecutionContext): Future[Buffer[DK]]

    Permalink
    Definition Classes
    SaladClusterCommands
  13. def clusterMeet(redisURI: RedisURI)(implicit executionContext: ExecutionContext): Future[Unit]

    Permalink

    Invoke the underlying methods with additional logging.

    Invoke the underlying methods with additional logging.

    returns

    Future(Unit) on "OK", else Future.failed(exception)

    Definition Classes
    SaladClusterCommands
    See also

    RedisClusterAsyncCommands for javadocs per method.

  14. def clusterMyId: Future[String]

    Permalink
    Definition Classes
    SaladClusterCommands
  15. def clusterNodes(implicit executionContext: ExecutionContext): Future[Buffer[RedisClusterNode]]

    Permalink

    Get a list of nodes in the cluster.

    Get a list of nodes in the cluster.

    Definition Classes
    SaladClusterCommands
  16. def clusterReplicate(nodeId: String)(implicit executionContext: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    SaladClusterCommands
  17. def clusterReset(hard: Boolean = false)(implicit executionContext: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    SaladClusterCommands
  18. def clusterSetSlotImporting(slot: Int, nodeId: String)(implicit executionContext: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    SaladClusterCommands
  19. def clusterSetSlotMigrating(slot: Int, nodeId: String)(implicit executionContext: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    SaladClusterCommands
  20. def clusterSetSlotNode(slot: Int, nodeId: String)(implicit executionContext: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    SaladClusterCommands
  21. def clusterSetSlotStable(slot: Int)(implicit executionContext: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    SaladClusterCommands
  22. def del[DK](key: DK)(implicit keySerde: Serde[DK, EK], executionContext: ExecutionContext): Future[Boolean]

    Permalink

    Delete a key-value pair.

    Delete a key-value pair.

    DK

    The unencoded key type.

    key

    The key to delete.

    keySerde

    The serde to encode the key.

    returns

    A Future indicating success.

    Definition Classes
    SaladKeyCommandsImplSaladKeyCommands
  23. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  25. def expire[DK](key: DK, ex: Long)(implicit keySerde: Serde[DK, EK], executionContext: ExecutionContext): Future[Boolean]

    Permalink

    Set a key's TTL in seconds.

    Set a key's TTL in seconds.

    DK

    The unencoded key type.

    key

    The key to expire.

    ex

    The TTL in seconds.

    keySerde

    The serde to encode the key.

    executionContext

    The thread dispatcher.

    returns

    A Future indicating success.

    Definition Classes
    SaladKeyCommandsImplSaladKeyCommands
  26. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  28. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  29. def info(section: Option[String] = None)(implicit keySerde: Serde[String, EK], valSerde: Serde[String, String], executionContext: ExecutionContext): Future[String]

    Permalink

    Retrieve info about the Redis server node

    Retrieve info about the Redis server node

    section

    The section to retrieve info about the server. If left blank, returns info for all sections

    returns

    A Future containing a string dump of the output of the command

    Definition Classes
    SaladServerCommandsImplSaladServerCommands
  30. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  31. def masterNodes(amongNodes: Buffer[RedisClusterNode]): Buffer[RedisClusterNode]

    Permalink
    Definition Classes
    SaladClusterCommands
  32. def masterNodes(implicit executionContext: ExecutionContext): Future[Buffer[RedisClusterNode]]

    Permalink
    Definition Classes
    SaladClusterCommands
  33. def migrate[DK](redisURI: RedisURI, keys: List[DK], timeout: Long = 5000, copy: Boolean = false, replace: Boolean = false)(implicit keySerde: Serde[DK, EK], executionContext: ExecutionContext): Future[Unit]

    Permalink

    Atomically transfer one or more keys from a Redis instance to another one.

    Atomically transfer one or more keys from a Redis instance to another one.

    DK

    The unencoded key type.

    redisURI

    The destination URI.

    keys

    The list of keys to migrate.

    timeout

    The timeout in milliseconds.

    copy

    Do not remove the key from the local instance.

    replace

    Replace existing key on the remote instance.

    keySerde

    The serde to encode the key.

    executionContext

    The thread dispatcher.

    returns

    A Future indicating success.

    Definition Classes
    SaladKeyCommandsImplSaladKeyCommands
  34. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  35. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. def persist[DK](key: DK)(implicit keySerde: Serde[DK, EK], executionContext: ExecutionContext): Future[Boolean]

    Permalink

    Remove the expiry from a key.

    Remove the expiry from a key.

    DK

    The unencoded key type.

    key

    The key for which to unset expiry.

    keySerde

    The serde to encode the key.

    executionContext

    The thread dispatcher.

    returns

    A Future indicating success.

    Definition Classes
    SaladKeyCommandsImplSaladKeyCommands
  38. def pexpire[DK](key: DK, px: Long)(implicit keySerde: Serde[DK, EK], executionContext: ExecutionContext): Future[Boolean]

    Permalink

    Set a key's TTL in milliseconds.

    Set a key's TTL in milliseconds.

    DK

    The unencoded key type.

    key

    The key to expire.

    px

    The TTL in milliseconds.

    keySerde

    The serde to encode the key.

    executionContext

    The thread dispatcher.

    returns

    A Future indicating success.

    Definition Classes
    SaladKeyCommandsImplSaladKeyCommands
  39. def slaveNodes(amongNodes: Buffer[RedisClusterNode]): Buffer[RedisClusterNode]

    Permalink
    Definition Classes
    SaladClusterCommands
  40. def slaveNodes(implicit executionContext: ExecutionContext): Future[Buffer[RedisClusterNode]]

    Permalink
    Definition Classes
    SaladClusterCommands
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  42. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  43. val underlying: RedisClusterAsyncCommands[EK, EV]

    Permalink

    The lettuce async API to be wrapped.

    The lettuce async API to be wrapped.

    Definition Classes
    SaladClusterAPISaladServerCommandsImplSaladKeyCommandsImplSaladClusterCommands
  44. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SaladServerCommandsImpl[EK, EV, RedisServerAsyncCommands[EK, EV]]

Inherited from SaladServerCommands[EK, EK, RedisServerAsyncCommands[EK, EV]]

Inherited from SaladKeyCommandsImpl[EK, EV, RedisKeyAsyncCommands[EK, EV]]

Inherited from SaladKeyCommands[EK, EV, RedisKeyAsyncCommands[EK, EV]]

Inherited from SaladClusterCommands[EK, EV, RedisClusterAsyncCommands[EK, EV]]

Inherited from AnyRef

Inherited from Any

Ungrouped