object Cache
- Alphabetic
- By Inheritance
- Cache
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class CacheKey(date: LocalDate, center: Position) extends Product with Serializable
Cache key for obtaining record
Cache key for obtaining record
- date
local date for UTC
- center
rounded geo coordinates
- final case class Position(latitude: Float, longitude: Float) extends Product with Serializable
Class to represent geographical coordinates
Class to represent geographical coordinates
- latitude
place's latitude
- longitude
places's longitude
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def dayEndEpoch(date: LocalDate): Timestamp
- date
local date for UTC
- returns
unix timestamp of the provided day's end
- def dayStartEpoch(date: LocalDate): Timestamp
- date
local date for UTC
- returns
unix timestamp of the provided day's start
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def eventToCacheKey(dateTime: ZonedDateTime, position: Position, geoPrecision: Int): CacheKey
Round position and timestamp (event) to produce cache key
Round position and timestamp (event) to produce cache key
- dateTime
zoned datetime
- position
latitude & longitude
- geoPrecision
nth part of 1 to which latitude and longitude will be rounded
- returns
cache key
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def init[F[_], W <: WeatherResponse](size: Int, geoPrecision: Int)(implicit arg0: Functor[F], CLM: CreateLruMap[F, CacheKey, Either[WeatherError, W]]): F[Cache[F, W]]
Factory method to create a cache.
Factory method to create a cache.
- size
resulting cache's size
- geoPrecision
nth part of 1 to which latitude and longitude will be rounded when making requests to the cache
- returns
a cache of WeatherResponse wrapped in a F
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def roundCoordinate(coordinate: Float, geoPrecision: Int): Float
Round coordinate by
geoPrecision
Scale value to tenths to prevent values to be long like 1.333334Round coordinate by
geoPrecision
Scale value to tenths to prevent values to be long like 1.333334- coordinate
latitude or longitude
- returns
rounded coordinate
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated