API: utils/cacheTypes
better-web-search-mcp / utils/cacheTypes
utils/cacheTypes#
Interfaces#
ApiPattern#
Defined in: src/utils/cacheTypes.ts:25
A discovered API endpoint pattern.
Properties#
| Property | Type | Defined in |
|---|---|---|
content_type | string | src/utils/cacheTypes.ts:30 |
discovered_at | number | src/utils/cacheTypes.ts:31 |
domain | string | src/utils/cacheTypes.ts:27 |
endpoint_pattern | string | src/utils/cacheTypes.ts:28 |
id | number | src/utils/cacheTypes.ts:26 |
method | string | src/utils/cacheTypes.ts:29 |
CacheOptions#
Defined in: src/utils/cacheTypes.ts:35
Options controlling the Cache backend.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
dbPath? | string | Path to the SQLite database file. Defaults to data/cache.db. | src/utils/cacheTypes.ts:37 |
memory? | boolean | Force the in-memory Map backend (used in CI / tests). | src/utils/cacheTypes.ts:39 |
PageCacheEntry#
Defined in: src/utils/cacheTypes.ts:16
A cached page entry.
Properties#
| Property | Type | Defined in |
|---|---|---|
confidence | number | src/utils/cacheTypes.ts:20 |
content | string | src/utils/cacheTypes.ts:18 |
created_at | number | src/utils/cacheTypes.ts:21 |
extraction_method | string | src/utils/cacheTypes.ts:19 |
url | string | src/utils/cacheTypes.ts:17 |
Variables#
PAGE_TTL_MS#
constPAGE_TTL_MS:number
Defined in: src/utils/cacheTypes.ts:13
TTL for cached pages, in milliseconds (1 hour).
SEARCH_TTL_MS#
constSEARCH_TTL_MS:number
Defined in: src/utils/cacheTypes.ts:10
TTL for cached search results, in milliseconds (15 minutes).