May 2017
Intermediate to advanced
414 pages
13h
English
import akka.actor.{Actor, ActorSystem, Props} import akka.routing.ConsistentHashingPool import akka.routing.ConsistentHashingRouter.{ ConsistentHashMapping, ConsistentHashable, ConsistentHashableEnvelope} import akka.util.Timeout import scala.concurrent.duration.
case class Evict(key: String) case class Get(key: String) extends ConsistentHashable { override def consistentHashKey: Any = key } case class Entry(key: String, value: String)
class Cache extends Actor { ...Read now
Unlock full access