ZIO Cache

ZIO Cache

  • Overview
  • Use Cases
  • API
  • About

›Overview

Overview

  • Summary
  • Lookup
  • Cache
  • Cache Statistics
  • Entry Statistics

Entry Statistics

ZIO Cache also tracks statistics associated with each entry, such as when the entry was last accessed. You can access the statistics for a specified entry using the entryStats operator on Cache.

import zio._

import java.time.Instant

trait EntryStats {
  def loaded: Instant
}

trait Cache[-Key, +Error, +Value] {
  def entryStats: UIO[EntryStats]
}

More entry statistics will be added over time.

← Cache Statistics
ZIO Cache
GitHub
Star
Chat with us on Discord
discord
Additional resources
Scaladoc of zio-cache
Copyright © 2022 ZIO Maintainers