val result: Future[Option[String]] = //something
我如何从上面的例子中获取字符串值。结果包含字符串:
val memcached = Memcached(Configuration("127.0.0.1:11211"))
import concurrent.duration._ // for specifying timeouts
import concurrent.Future
val op: Future[Unit] = memcached.set("username", "Alex", 1.minute)
val result: Future[Option[String]] = memcached.get[String]("username")
我想从结果中获得实际价值。