kafka/internal/search
Franz Kafka 94322ceff4 feat: Valkey cache for search results
- Add internal/cache package using go-redis/v9 (Valkey-compatible)
- Cache keys are deterministic SHA-256 hashes of search parameters
- Cache wraps the Search() method: check cache → miss → execute → store
- Gracefully disabled if Valkey is unreachable or unconfigured
- Configurable TTL (default 5m), address, password, and DB index
- Environment variable overrides: VALKEY_ADDRESS, VALKEY_PASSWORD,
  VALKEY_DB, VALKEY_CACHE_TTL
- Structured JSON logging via slog throughout cache layer
- Refactored service.go: extract executeSearch() from Search() for clarity
- Update config.example.toml with [cache] section
- Add cache package tests (key generation, nop behavior)
2026-03-21 15:43:47 +00:00
..
merge.go feat: build Go-based SearXNG-compatible search service 2026-03-20 20:34:08 +01:00
merge_test.go feat: build Go-based SearXNG-compatible search service 2026-03-20 20:34:08 +01:00
request_params.go feat: build Go-based SearXNG-compatible search service 2026-03-20 20:34:08 +01:00
request_params_test.go feat: build Go-based SearXNG-compatible search service 2026-03-20 20:34:08 +01:00
response.go feat: build Go-based SearXNG-compatible search service 2026-03-20 20:34:08 +01:00
service.go feat: Valkey cache for search results 2026-03-21 15:43:47 +00:00
service_test.go feat: concurrent engine execution with graceful degradation 2026-03-21 15:39:00 +00:00
types.go feat: build Go-based SearXNG-compatible search service 2026-03-20 20:34:08 +01:00