Pudu programming language
Menu

Std.App.Session.withoutExpired

1 declaration

fn

withoutExpired: &Std.App.Session.Sessions -> &Std.App.Session.Bounds -> Int -> Std.App.Session.Sessions

This is a callable function.

What it does

The sessions with every expired one forgotten.

Worth doing on a schedule rather than only on lookup: a session nobody

looks up again is one that stays in the store forever, and a store that

only grows is a leak that takes a month to notice.

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.
  • & borrows a value for this call instead of moving or copying it.

Back to Std.App.SessionSearch related declarations