io.youi.Cache.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of youi-core_sjs0.6_2.13 Show documentation
Show all versions of youi-core_sjs0.6_2.13 Show documentation
Core functionality leveraged and shared by most other sub-projects of YouI.
The newest version!
package io.youi
import io.youi.net.URL
object Cache {
var implementation: CacheImplementation = _
def cached(url: URL): String = {
assert(implementation != null, "CacheImplementation must be set before Cache can be used.")
implementation.cached(url)
}
}
trait CacheImplementation {
def cached(url: URL): String
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy