Skip to content

Commit

Permalink
Fixes Issue #135
Browse files Browse the repository at this point in the history
  • Loading branch information
debasishg committed Apr 5, 2015
1 parent 72f380a commit b8851a0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion project/ScalaRedisProject.scala
Expand Up @@ -8,7 +8,7 @@ object ScalaRedisProject extends Build

lazy val commonSettings: Seq[Setting[_]] = Seq(
organization := "net.debasishg",
version := "2.15",
version := "3.0",
scalaVersion := "2.11.6",
crossScalaVersions := Seq("2.11.6", "2.10.4"),

Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/com/redis/RedisClient.scala
Expand Up @@ -169,7 +169,7 @@ class RedisClient(override val host: String, override val port: Int,
ps
}

class PipelineClient(parent: RedisClient) extends RedisCommand {
class PipelineClient(parent: RedisClient) extends RedisCommand with PubOperations {
import com.redis.serialization.Parse

var handlers: Vector[() => Any] = Vector.empty
Expand Down
11 changes: 11 additions & 0 deletions src/test/scala/com/redis/PipelineSpec.scala
Expand Up @@ -35,6 +35,17 @@ class PipelineSpec extends FunSpec
}
}

describe("pipeline1 with publish") {
it("should do pipelined commands") {
r.pipeline { p =>
p.set("key", "debasish")
p.get("key")
p.get("key1")
p.publish("a", "debasish ghosh")
}.get should equal(List(true, Some("debasish"), None, Some(0)))
}
}

describe("pipeline2") {
it("should do pipelined commands") {
r.pipeline { p =>
Expand Down

0 comments on commit b8851a0

Please sign in to comment.