Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AGENTS.md
8 changes: 6 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# CLAUDE.md

## Project
## Project Overview

`@humanspeak/memory-cache` — a lightweight, zero-dependency in-memory cache for TypeScript/JavaScript.
`@humanspeak/memory-cache` — A lightweight, zero-dependency in-memory cache for TypeScript with TTL expiration, LRU eviction, and @cached decorator for method-level memoization.

- **Package**: `@humanspeak/memory-cache`
- **Homepage**: <https://memory.svelte.page>
- **Repository**: <https://github.com/humanspeak/memory-cache>

## Coding Style

Expand Down
5 changes: 5 additions & 0 deletions docs/src/routes/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const load = () => ({
title: 'Memory Cache - Lightweight TypeScript In-Memory Caching Library',
description:
'A lightweight, zero-dependency TypeScript in-memory caching library with TTL expiration, LRU eviction, and decorator support.'
})
5 changes: 5 additions & 0 deletions docs/src/routes/docs/api/cached-decorator/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const load = () => ({
title: '@cached Decorator API - Memory Cache',
description:
'API reference for the @cached decorator that adds automatic caching to class methods.'
})
5 changes: 5 additions & 0 deletions docs/src/routes/docs/api/memory-cache/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const load = () => ({
title: 'MemoryCache API - Memory Cache',
description:
'Complete API reference for the MemoryCache class including all methods, options, and configuration.'
})
5 changes: 5 additions & 0 deletions docs/src/routes/docs/examples/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const load = () => ({
title: 'Usage Examples | Memory Cache',
description:
'Practical examples showing how to use Memory Cache for API caching, sessions, rate limiting, and more.'
})
4 changes: 4 additions & 0 deletions docs/src/routes/docs/examples/api-caching/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const load = () => ({
title: 'API Caching | Examples | Memory Cache',
description: 'Cache API responses to reduce latency and external API calls with Memory Cache.'
})
5 changes: 5 additions & 0 deletions docs/src/routes/docs/examples/async-fetching/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const load = () => ({
title: 'Async Fetching | Examples | Memory Cache',
description:
'Cache async fetch results with automatic deduplication and stale-while-revalidate patterns.'
})
5 changes: 5 additions & 0 deletions docs/src/routes/docs/examples/computed-values/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const load = () => ({
title: 'Computed Values | Examples | Memory Cache',
description:
'Cache expensive computed values and derived data with automatic TTL-based refresh.'
})
5 changes: 5 additions & 0 deletions docs/src/routes/docs/examples/configuration/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const load = () => ({
title: 'Configuration | Examples | Memory Cache',
description:
'Configure Memory Cache with custom TTL, max size, eviction policies, and other options.'
})
5 changes: 5 additions & 0 deletions docs/src/routes/docs/examples/database-caching/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const load = () => ({
title: 'Database Caching | Examples | Memory Cache',
description:
'Speed up database queries by caching results in memory with automatic invalidation.'
})
4 changes: 4 additions & 0 deletions docs/src/routes/docs/examples/monitoring/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const load = () => ({
title: 'Monitoring | Examples | Memory Cache',
description: 'Monitor cache health with hit rates, memory usage, and performance metrics.'
})
4 changes: 4 additions & 0 deletions docs/src/routes/docs/examples/multi-tenant/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const load = () => ({
title: 'Multi-Tenant Caching | Examples | Memory Cache',
description: 'Implement isolated per-tenant caches with namespace support in Memory Cache.'
})
4 changes: 4 additions & 0 deletions docs/src/routes/docs/examples/rate-limiting/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const load = () => ({
title: 'Rate Limiting | Examples | Memory Cache',
description: 'Implement simple rate limiting using Memory Cache with TTL-based sliding windows.'
})
5 changes: 5 additions & 0 deletions docs/src/routes/docs/examples/service-class/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const load = () => ({
title: 'Service Class | Examples | Memory Cache',
description:
'Build a cache-backed service class with the @cached decorator for clean architecture.'
})
4 changes: 4 additions & 0 deletions docs/src/routes/docs/examples/sessions/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const load = () => ({
title: 'Session Management | Examples | Memory Cache',
description: 'Implement in-memory session storage with automatic expiration using Memory Cache.'
})
5 changes: 5 additions & 0 deletions docs/src/routes/docs/getting-started/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const load = () => ({
title: 'Getting Started - Memory Cache',
description:
'Install and configure Memory Cache in your TypeScript or JavaScript project with this quick start guide.'
})
5 changes: 5 additions & 0 deletions docs/src/routes/examples/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const load = () => ({
title: 'Interactive Examples | Memory Cache',
description:
'Try interactive examples demonstrating Memory Cache features including TTL, LRU eviction, and cache statistics.'
})
5 changes: 5 additions & 0 deletions docs/src/routes/examples/basic-cache/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const load = () => ({
title: 'Basic Cache | Examples | Memory Cache',
description:
'Learn how to create and use a basic in-memory cache with get, set, and delete operations.'
})
5 changes: 5 additions & 0 deletions docs/src/routes/examples/cache-statistics/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const load = () => ({
title: 'Cache Statistics | Examples | Memory Cache',
description:
'Monitor cache performance with built-in statistics tracking hits, misses, and evictions.'
})
5 changes: 5 additions & 0 deletions docs/src/routes/examples/lru-eviction/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const load = () => ({
title: 'LRU Eviction | Examples | Memory Cache',
description:
'Explore least-recently-used eviction policies to manage cache size and memory usage.'
})
5 changes: 5 additions & 0 deletions docs/src/routes/examples/ttl-expiration/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const load = () => ({
title: 'TTL Expiration | Examples | Memory Cache',
description:
'See how time-to-live expiration works in Memory Cache with configurable TTL per entry.'
})
Loading