Skip to content

Commit

Permalink
Keep compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Bobylev committed Feb 11, 2020
1 parent f38bae1 commit 0ef7224
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/main/scala/com/evolutiongaming/scache/Cache.scala
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ object Cache {
}


def loading[F[_] : Concurrent : Runtime, K, V](partitions: Int): Resource[F, Cache[F, K, V]] = {
loading(Some(partitions))
}
def loading[F[_] : Concurrent : Runtime, K, V]: Resource[F, Cache[F, K, V]] = loading(None)


def loading[F[_] : Concurrent : Runtime, K, V](partitions: Int): Resource[F, Cache[F, K, V]] = loading(Some(partitions))


def loading[F[_] : Concurrent : Runtime, K, V](partitions: Option[Int] = None): Resource[F, Cache[F, K, V]] = {
Expand Down
7 changes: 4 additions & 3 deletions src/main/scala/com/evolutiongaming/scache/SerialMap.scala
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ object SerialMap { self =>
def apply[F[_]](implicit F: Concurrent[F]): Apply[F] = new Apply(F)


def of[F[_] : Concurrent : Runtime, K, V](partitions: Int): F[SerialMap[F, K, V]] = {
of(Some(partitions))
}
def of[F[_] : Concurrent : Runtime, K, V]: F[SerialMap[F, K, V]] = of(None)


def of[F[_] : Concurrent : Runtime, K, V](partitions: Int): F[SerialMap[F, K, V]] = of(Some(partitions))


def of[F[_] : Concurrent : Runtime, K, V](partitions: Option[Int] = None): F[SerialMap[F, K, V]] = {
Expand Down

0 comments on commit 0ef7224

Please sign in to comment.