MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / FIFO_find

Function FIFO_find

libCacheSim/cache/eviction/FIFO.c:122–125  ·  view source on GitHub ↗

* @brief find an object in the cache * * @param cache * @param req * @param update_cache whether to update the cache, * if true, the object is promoted * and if the object is expired, it is removed from the cache * @return the object or NULL if not found */

Source from the content-addressed store, hash-verified

120 * @return the object or NULL if not found
121 */
122static cache_obj_t *FIFO_find(cache_t *cache, const request_t *req,
123 const bool update_cache) {
124 return cache_find_base(cache, req, update_cache);
125}
126
127/**
128 * @brief insert an object into the cache,

Callers

nothing calls this directly

Calls 1

cache_find_baseFunction · 0.85

Tested by

no test coverage detected