API: utils/cacheTypes

better-web-search-mcp


better-web-search-mcp / utils/cacheTypes

utils/cacheTypes#

Interfaces#

ApiPattern#

Defined in: src/utils/cacheTypes.ts:25

A discovered API endpoint pattern.

Properties#

PropertyTypeDefined in
content_typestringsrc/utils/cacheTypes.ts:30
discovered_atnumbersrc/utils/cacheTypes.ts:31
domainstringsrc/utils/cacheTypes.ts:27
endpoint_patternstringsrc/utils/cacheTypes.ts:28
idnumbersrc/utils/cacheTypes.ts:26
methodstringsrc/utils/cacheTypes.ts:29

CacheOptions#

Defined in: src/utils/cacheTypes.ts:35

Options controlling the Cache backend.

Properties#

PropertyTypeDescriptionDefined in
dbPath?stringPath to the SQLite database file. Defaults to data/cache.db.src/utils/cacheTypes.ts:37
memory?booleanForce 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#

PropertyTypeDefined in
confidencenumbersrc/utils/cacheTypes.ts:20
contentstringsrc/utils/cacheTypes.ts:18
created_atnumbersrc/utils/cacheTypes.ts:21
extraction_methodstringsrc/utils/cacheTypes.ts:19
urlstringsrc/utils/cacheTypes.ts:17

Variables#

PAGE_TTL_MS#

const PAGE_TTL_MS: number

Defined in: src/utils/cacheTypes.ts:13

TTL for cached pages, in milliseconds (1 hour).


SEARCH_TTL_MS#

const SEARCH_TTL_MS: number

Defined in: src/utils/cacheTypes.ts:10

TTL for cached search results, in milliseconds (15 minutes).