Pudu programming language
Menu

Std.App.Cache.holding

1 declaration

fn

holding: Int -> Int -> Std.App.Cache.Cache[K, V]

This is a callable function.

What it does

A cache holding at most this many things, each for this long.

The bound is on entries rather than bytes: the size of a value is not

something this can know, and a bound it cannot enforce is a claim rather

than a bound.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.
  • Names inside [ ] are type arguments, such as the item type held by a collection.

Back to Std.App.CacheSearch related declarations