MCPcopy Index your code
hub / github.com/npmx-dev/npmx.dev / setUnlikeInCache

Method setUnlikeInCache

server/utils/atproto/utils/likes.ts:256–258  ·  view source on GitHub ↗

* Access to unlike a package for a user in the cache. * @param packageName * @param usersDid

(packageName: string, usersDid: string)

Source from the content-addressed store, hash-verified

254 * @param usersDid
255 */
256 async setUnlikeInCache(packageName: string, usersDid: string) {
257 await this.cache.set(CACHE_USER_LIKES_KEY(packageName, usersDid), false, CACHE_MAX_AGE)
258 }
259
260 /**
261 * At this point you should have checked if the user had a record for the package on the network and removed it before updating the cache

Callers 2

like.delete.tsFile · 0.80

Calls 2

CACHE_USER_LIKES_KEYFunction · 0.85
setMethod · 0.65

Tested by

no test coverage detected