All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.youi.Cache.scala Maven / Gradle / Ivy

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