Packages

o

com.twitter.finagle

Memcached

object Memcached extends Client[Command, Response] with Server[Command, Response]

Stack based Memcached client.

For example, a default client can be built through:

Examples:
  1. val client =
      Memcached.client
        .withEjectFailedHost(true)
        .withTransport.connectTimeout(100.milliseconds))
        .withRequestTimeout(10.seconds)
        .withSession.acquisitionTimeout(20.seconds)
        .newRichClient(dest, "memcached_client")
  2. ,
  3. val client = Memcached.newRichClient(dest)

    If you want to provide more finely tuned configurations:

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Memcached
  2. Server
  3. Client
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Client (stack: Stack[ServiceFactory[Command, Response]] = Client.stack, params: Params = Client.params) extends StdStackClient[Command, Response, Client] with MemcachedRichClient with Product with Serializable

    A memcached client with support for pipelined requests, consistent hashing, and per-node load-balancing.

  2. case class Server (stack: Stack[ServiceFactory[Command, Response]] = StackServer.newStack, params: Params = Server.params) extends StdStackServer[Command, Response, Server] with Product with Serializable

    A Memcached server that should be used only for testing

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def client: Client
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def newClient(dest: Name, label: String): ServiceFactory[Command, Response]

    Create a new client connected to dest.

    Create a new client connected to dest. See the user guide for details on destination names.

    Argument label is used to assign a label to this client. The label is used to display stats, etc.

    Definition Classes
    MemcachedClient
  15. final def newClient(dest: String, label: String): ServiceFactory[Command, Response]

    Create a new client connected to dest.

    Create a new client connected to dest. See the user guide for details on destination names.

    Argument label is used to assign a label to this client. The label is used to display stats, etc.

    Definition Classes
    Client
  16. final def newClient(dest: String): ServiceFactory[Command, Response]

    Create a new client connected to dest.

    Create a new client connected to dest. See the user guide for details on destination names.

    Definition Classes
    Client
  17. def newService(dest: Name, label: String): Service[Command, Response]

    Create a new service which dispatches requests to dest.

    Create a new service which dispatches requests to dest. See the user guide for details on destination names.

    Argument label is used to assign a label to this client. The label is used to display stats, etc.

    Definition Classes
    MemcachedClient
  18. final def newService(dest: String, label: String): Service[Command, Response]

    Create a new service which dispatches requests to dest.

    Create a new service which dispatches requests to dest. See the user guide for details on destination names.

    Definition Classes
    Client
  19. final def newService(dest: String): Service[Command, Response]

    Create a new service which dispatches requests to dest.

    Create a new service which dispatches requests to dest. See the user guide for details on destination names.

    Definition Classes
    Client
  20. final def notify(): Unit
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  22. def serve(addr: SocketAddress, service: ServiceFactory[Command, Response]): ListeningServer

    Serve service at addr

    Serve service at addr

    Definition Classes
    MemcachedServer
  23. def serve(addr: String, service: Service[Command, Response]): ListeningServer

    Serve service at addr

    Serve service at addr

    Definition Classes
    Server
  24. def serve(addr: String, service: ServiceFactory[Command, Response]): ListeningServer

    Serve service at addr

    Serve service at addr

    Definition Classes
    Server
  25. def serve(addr: SocketAddress, service: Service[Command, Response]): ListeningServer

    Serve service at addr

    Serve service at addr

    Definition Classes
    Server
  26. def serveAndAnnounce(name: String, service: Service[Command, Response]): ListeningServer

    Serve service at addr and announce with name.

    Serve service at addr and announce with name. Announcements will be removed when the service is closed. Omitting the addr will bind to an ephemeral port.

    Definition Classes
    Server
  27. def serveAndAnnounce(name: String, service: ServiceFactory[Command, Response]): ListeningServer

    Serve service at addr and announce with name.

    Serve service at addr and announce with name. Announcements will be removed when the service is closed. Omitting the addr will bind to an ephemeral port.

    Definition Classes
    Server
  28. def serveAndAnnounce(name: String, addr: String, service: Service[Command, Response]): ListeningServer

    Serve service at addr and announce with name.

    Serve service at addr and announce with name. Announcements will be removed when the service is closed. Omitting the addr will bind to an ephemeral port.

    Definition Classes
    Server
  29. def serveAndAnnounce(name: String, addr: String, service: ServiceFactory[Command, Response]): ListeningServer

    Serve service at addr and announce with name.

    Serve service at addr and announce with name. Announcements will be removed when the service is closed. Omitting the addr will bind to an ephemeral port.

    Definition Classes
    Server
  30. def serveAndAnnounce(name: String, addr: SocketAddress, service: Service[Command, Response]): ListeningServer

    Serve service at addr and announce with name.

    Serve service at addr and announce with name. Announcements will be removed when the service is closed. Omitting the addr will bind to an ephemeral port.

    Definition Classes
    Server
  31. def serveAndAnnounce(name: String, addr: SocketAddress, service: ServiceFactory[Command, Response]): ListeningServer

    Serve service at addr and announce with name.

    Serve service at addr and announce with name. Announcements will be removed when the service is closed. Omitting the addr will bind to an ephemeral port.

    Definition Classes
    Server
  32. def server: Server
  33. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. object Client extends Serializable
  39. object Server extends Serializable
  40. object param

    Memcached specific stack params.

Inherited from finagle.Server[Command, Response]

Inherited from finagle.Client[Command, Response]

Inherited from AnyRef

Inherited from Any

Ungrouped