Skip to content

Commit

Permalink
rename redisCopy back to copy
Browse files Browse the repository at this point in the history
  • Loading branch information
mberndt123 committed Oct 20, 2023
1 parent 1fa7642 commit 8c8969a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/redis-it/src/test/scala/zio/redis/KeysSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ trait KeysSpec extends BaseSpec {
sourceValue <- uuid
_ <- redis.set(sourceKey, sourceValue)
destinationKey <- uuid
_ <- redis.redisCopy(sourceKey, destinationKey)
_ <- redis.copy(sourceKey, destinationKey)
destinationValue <- redis.get(destinationKey).returning[String]
} yield assertTrue(destinationValue.contains(sourceValue))
} @@ clusterExecutorUnsupported,
Expand Down
4 changes: 2 additions & 2 deletions modules/redis/src/main/scala/zio/redis/Redis.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ object Redis {
for {
codecSupplier <- ZIO.service[CodecSupplier]
executor <- ZIO.service[RedisExecutor]
} yield Live(codecSupplier, executor)
} yield new Live(codecSupplier, executor)
}

private final case class Live(codecSupplier: CodecSupplier, executor: RedisExecutor) extends Redis
private final class Live(val codecSupplier: CodecSupplier, val executor: RedisExecutor) extends Redis
}
2 changes: 1 addition & 1 deletion modules/redis/src/main/scala/zio/redis/api/Keys.scala
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ trait Keys extends RedisEnvironment {
* true if source was copied, false otherwise.
*/

final def redisCopy[S: Schema, D: Schema](
final def copy[S: Schema, D: Schema](
source: S,
destination: D,
database: Option[Long] = None,
Expand Down

0 comments on commit 8c8969a

Please sign in to comment.