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

org.scalatra.cache.Cache.scala Maven / Gradle / Ivy

The newest version!
package org.scalatra.cache

import org.joda.time.DateTime

import scala.concurrent.duration.Duration

trait Cache {
  def get[V](key: String): Option[V]

  def put[V](key: String, value: V, ttl: Option[Duration]): V

  def remove(key: String)

  def flush()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy