Class

com.redislabs.provider.redis

RedisConfig

Related Doc: package redis

Permalink

class RedisConfig extends Serializable

RedisConfig holds the state of the cluster nodes, and uses consistent hashing to map keys to nodes

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RedisConfig
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RedisConfig(initialHost: RedisEndpoint)

    Permalink

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 clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def connectionForKey(key: String): Jedis

    Permalink

    key

    *IMPORTANT* Please remember to close after using

    returns

    jedis who is a connection for a given key

  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def getAuth: String

    Permalink

    returns

    initialHost's auth

  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getDB: Int

    Permalink

    returns

    selected db number

  13. def getHost(key: String): RedisNode

    Permalink

    returns

    host whose slots should involve key

  14. def getNodes(initialHost: RedisEndpoint): Array[RedisNode]

    Permalink

    initialHost

    any redis endpoint of a cluster or a single server

    returns

    list of nodes

  15. def getNodesBySlots(sPos: Int, ePos: Int): Array[RedisNode]

    Permalink

    sPos

    start slot number

    ePos

    end slot number

    returns

    a list of RedisNode whose slots union [sPos, ePos] is not null

  16. def getRandomNode(): RedisNode

    Permalink
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. val hosts: Array[RedisNode]

    Permalink
  19. val initialAddr: String

    Permalink
  20. val initialHost: RedisEndpoint

    Permalink
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. val nodes: Array[RedisNode]

    Permalink
  24. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  26. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped