Skip to content

Map-like Usage

Using Pool as a Map replacement with get/has/set/delete operations.

Source Code

View on GitHub

Running

bash
bun run examples/map-like.ts

Features Demonstrated

  • Using Pool as a Map replacement
  • get/has/set/delete operations
  • Pool of pools with identifiers
  • Cache implementation
  • Config management
  • Events with Map-like operations

See the source code for the complete implementation.