Skip to content

Commit

Permalink
it should be all lowercase. makes more sense.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgolick committed Aug 25, 2010
1 parent 3dcdf1e commit 3d57a82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/Memcache.scala
Expand Up @@ -33,7 +33,7 @@ class Memcache(val client: MemcachedClient) {
client.set(key, expiration, value.asInstanceOf[Object])
}

def multiGet[A](keys: Set[String]): Map[String, A] = {
def multiget[A](keys: Set[String]): Map[String, A] = {
client.getBulk(keys.toList).foldLeft(Map[String, A]()) { case (m, (k,v)) =>
m + (k -> v.asInstanceOf[A])
}
Expand Down
4 changes: 2 additions & 2 deletions src/test/scala/MemcacheSpec.scala
Expand Up @@ -62,13 +62,13 @@ object MemcacheSpec extends Specification with Mockito {
}
}

"doing a multiGet delegates to the client" in {
"doing a multiget delegates to the client" in {
val map = new java.util.HashMap[String, Object]()
val scalaMap = Map("key1" -> "value1")

map.put("key1", "value1")
underlyingClient.getBulk(Set("key1", "key2").toList) returns map
cache.multiGet(Set("key1", "key2")) must_== scalaMap
cache.multiget(Set("key1", "key2")) must_== scalaMap
}

"prepending to a key delegates to the client" in {
Expand Down

0 comments on commit 3d57a82

Please sign in to comment.