<!-- Source: https://memory.svelte.page/examples -->

# Interactive Examples

> Live demos mirrored as markdown with runnable Svelte source for LLMs and agents.

**Source:** [https://memory.svelte.page/examples](https://memory.svelte.page/examples)

**Markdown mirror:** [https://memory.svelte.page/examples.md](https://memory.svelte.page/examples.md)

---

Each linked mirror includes the live page description, section notes, and fenced source for the demo components used on that page.

## Examples

- [Basic Cache](https://memory.svelte.page/examples/basic-cache.md) - Create and use a basic in-memory cache with get, set, and delete operations in an interactive @humanspeak/memory-cache demo for TypeScript apps. (live: [https://memory.svelte.page/examples/basic-cache](https://memory.svelte.page/examples/basic-cache), tag: `CACHE-BASICS`)
- [Cache Statistics](https://memory.svelte.page/examples/cache-statistics.md) - Monitor @humanspeak/memory-cache performance with built-in statistics for hits, misses, and evictions in a real-time interactive TypeScript demo app. (live: [https://memory.svelte.page/examples/cache-statistics](https://memory.svelte.page/examples/cache-statistics), tag: `OBSERVABILITY`)
- [LRU Eviction](https://memory.svelte.page/examples/lru-eviction.md) - Explore LRU eviction policies in @humanspeak/memory-cache with an interactive demo showing max-size behavior and expired-entry pruning in apps. (live: [https://memory.svelte.page/examples/lru-eviction](https://memory.svelte.page/examples/lru-eviction), tag: `EVICTION-POLICY`)
- [Memory-Weighted Eviction](https://memory.svelte.page/examples/memory-weighted-eviction.md) - Explore weighted LRU eviction in @humanspeak/memory-cache with an interactive API-response demo showing aggregate weight, recency, and multi-eviction. (live: [https://memory.svelte.page/examples/memory-weighted-eviction](https://memory.svelte.page/examples/memory-weighted-eviction), tag: `WEIGHTED-LRU`)
- [TTL Expiration](https://memory.svelte.page/examples/ttl-expiration.md) - See TTL expiration in @humanspeak/memory-cache with configurable time-to-live per entry and an interactive automatic cleanup demo for TypeScript apps. (live: [https://memory.svelte.page/examples/ttl-expiration](https://memory.svelte.page/examples/ttl-expiration), tag: `EXPIRATION-WINDOW`)
