MCPcopy
hub / github.com/sjdonado/idonthavespotify / cacheSearchResultLink

Function cacheSearchResultLink

src/services/cache.ts:88–95  ·  view source on GitHub ↗
(
  adapter: Adapter,
  sourceParser: Parser,
  sourceId: string,
  searchResultLink: SearchResultLink
)

Source from the content-addressed store, hash-verified

86
87// Search result link caching
88export const cacheSearchResultLink = async (
89 adapter: Adapter,
90 sourceParser: Parser,
91 sourceId: string,
92 searchResultLink: SearchResultLink
93): Promise<void> => {
94 cache.set(`search:${adapter}:${sourceParser}:${sourceId}`, searchResultLink);
95};
96
97export const getCachedSearchResultLink = async (
98 adapter: Adapter,

Callers 10

getTidalLinkFunction · 0.90
getBandcampLinkFunction · 0.90
getYouTubeLinkFunction · 0.90
getPandoraLinkFunction · 0.90
getSpotifyLinkFunction · 0.90
getDeezerLinkFunction · 0.90
getSoundCloudLinkFunction · 0.90
getQobuzLinkFunction · 0.90
getAppleMusicLinkFunction · 0.90

Calls 1

setMethod · 0.80

Tested by

no test coverage detected