Factory methods to build a finagle-memcached client.
Stack based Memcached client.
Stack based Memcached client.
For example, a default client can be built through:
val client = Memcached.client .withEjectFailedHost(true) // tcp connection timeout .configured(Transporter.ConnectTimeout(100.milliseconds)) // single request timeout .configured(TimeoutFilter.Param(requestTimeout)) // the acquisition timeout of a connection .configured(TimeoutFactory.Param(serviceTimeout)) .newRichClient(dest, "memcached_client")
val client = Memcached.newRichClient(dest)
If you want to provide more finely tuned configurations: