Skip to content

feat: cache support#4

Merged
nip10 merged 5 commits intomainfrom
feat/cache-support
Dec 26, 2025
Merged

feat: cache support#4
nip10 merged 5 commits intomainfrom
feat/cache-support

Conversation

@nip10
Copy link
Owner

@nip10 nip10 commented Dec 26, 2025

  • Add in-memory LRU cache with configurable max size
  • Support custom cache providers (Redis, Memcached, etc.)
  • Add per-endpoint TTL configuration with sensible defaults
  • Real-time data (quotes, forex, crypto): No cache
  • Market movers: 1 minute TTL
  • News, analyst data: 1 hour TTL
  • Company profiles, financial statements: 24 hour TTL
  • Add cache management methods (clearCache, getCacheProvider)
  • Export CacheTTL presets and CacheProvider interface

BREAKING CHANGE: Cache is disabled by default (opt-in)

🤖 Generated with Claude Code

- Add in-memory LRU cache with configurable max size
- Support custom cache providers (Redis, Memcached, etc.)
- Add per-endpoint TTL configuration with sensible defaults
- Real-time data (quotes, forex, crypto): No cache
- Market movers: 1 minute TTL
- News, analyst data: 1 hour TTL
- Company profiles, financial statements: 24 hour TTL
- Add cache management methods (clearCache, getCacheProvider)
- Export CacheTTL presets and CacheProvider interface

BREAKING CHANGE: Cache is disabled by default (opt-in)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@nip10 nip10 self-assigned this Dec 26, 2025
nip10 and others added 4 commits December 26, 2025 11:01
- Add in-memory LRU cache with configurable max size
- Support custom cache providers (Redis, Memcached, etc.)
- Add per-endpoint TTL configuration with sensible defaults
- Real-time data (quotes, forex, crypto): No cache
- Market movers: 1 minute TTL
- News, analyst data: 1 hour TTL
- Company profiles, financial statements: 24 hour TTL
- Add cache management methods (clearCache, getCacheProvider)
- Export CacheTTL presets and CacheProvider interface

BREAKING CHANGE: Cache is disabled by default (opt-in)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds Redis-compatible cache provider that works with any Redis client:
- redis (node-redis)
- ioredis
- @upstash/redis
- @vercel/kv
- AWS ElastiCache, Azure Cache, KeyDB, DragonflyDB, etc.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@nip10 nip10 merged commit f999ca0 into main Dec 26, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant