• socsa@piefed.social
    link
    fedilink
    English
    arrow-up
    4
    ·
    6 hours ago

    Yeah I was going to say - unless your pile is ordered and indexed then it is not a cache and is more like random access.

    • grue@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 hours ago

      A pile is a messy stack, with access to push and pop only from the top. It is ordered (from the top down), but not indexed.