velo-org / velo

A high-performance caching library for Deno. Supports LRU, LFU, ARC, and TinyLFU.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error Handling for Builder Logic

herzogmatthias opened this issue · comments

  • either capacity() or weight() can be used
  • only positive integers as capacity and weight
  • a weight() call must be accompanied by a weighter() call before .build()
  • multiple calls for builder methods in the same chain should throw an error