package
1.0.1
Repository: https://github.com/dgraph-io/ristretto.git
Documentation: pkg.go.dev

# Functions

Collection evaluates the Simulator size times and saves each item to the returned slice.
NewReader creates a Simulator from two components: the Parser, which is a filetype specific function for parsing lines, and the file itself, which will be read from.
NewUniform creates a Simulator returning uniformly distributed [1] (random) numbers [0, max) infinitely.
NewZipfian creates a Simulator returning numbers following a Zipfian [1] distribution infinitely.
ParseARC takes a single line of input from an ARC trace file as described in "ARC: a self-tuning, low overhead replacement cache" [1] by Nimrod Megiddo and Dharmendra S.
ParseLIRS takes a single line of input from a LIRS trace file as described in multiple papers [1] and returns a slice containing one number.
StringCollection evaluates the Simulator size times and saves each item to the returned slice, after converting it to a string.

# Variables

ErrBadLine is returned when the trace file line is unrecognizable to the Parser.
ErrDone is returned when the underlying file has ran out of lines.

# Type aliases

Parser is used as a parameter to NewReader so we can create Simulators from varying trace file formats easily.
Simulator is the central type of the `sim` package.