← ZIO Query docs

Cache

zio.query.Cache
See theCache companion trait
object Cache

Attributes

Companion
trait
Source
Cache.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Cache.type

Members list

Value members

Concrete methods

def empty(implicit trace: Trace): UIO[Cache]

Constructs an empty cache.

Constructs an empty cache.

Attributes

Source
Cache.scala
def empty(expectedNumOfElements: Int)(implicit trace: Trace): UIO[Cache]

Constructs an empty cache, sized to accommodate the specified number of elements without the need for the internal data structures to be resized.

Constructs an empty cache, sized to accommodate the specified number of elements without the need for the internal data structures to be resized.

Attributes

Source
Cache.scala