<trclass="memdesc:ac7008173fc7e392fa825c69410920f0a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Finds a value in the cache by string key. <br/></td></tr>
<trclass="memdesc:a962bb6b97fb208cbd8a5932afb60e680"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds a value to the cache with a string key, pruning if necessary. <br/></td></tr>
<trclass="memdesc:af628823e6826f0d0e0aa52f96fc74f02"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Finds a value in the cache by uint64_t key, using string conversion. <br/></td></tr>
<trclass="memdesc:a06d1782c0ae7cb53efa1b5e0f63c5ccb"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds a value to the cache with a uint64_t key, using string conversion. <br/></td></tr>
<pclass="definition">Definition at line <aclass="el"href="lru_8c_source.html#l00071">71</a> of file <aclass="el"href="lru_8c_source.html">lru.c</a>.</p>
<p>Adds a value to the cache with a string key, pruning if necessary. </p>
<p>Adds a new entry to the cache. If the cache exceeds its maximum size, prunes the least recently used entry.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">cache</td><td>Pointer to the cache header. </td></tr>
<tr><tdclass="paramname">key</td><td>String key to add. </td></tr>
<tr><tdclass="paramname">value</td><td>Pointer to the value to store. </td></tr>
</table>
</dd>
</dl>
<pclass="definition">Definition at line <aclass="el"href="lru_8c_source.html#l00047">47</a> of file <aclass="el"href="lru_8c_source.html">lru.c</a>.</p>
<pclass="reference">References <aclass="el"href="lru_8h_source.html#l00048">CacheHeader::cache</a>, <aclass="el"href="lru_8h_source.html#l00030">CacheEntry::hh</a>, <aclass="el"href="lru_8h_source.html#l00028">CacheEntry::key</a>, <aclass="el"href="lru_8h_source.html#l00047">CacheHeader::max_items</a>, and <aclass="el"href="lru_8h_source.html#l00029">CacheEntry::value</a>.</p>
<pclass="reference">Referenced by <aclass="el"href="lru_8c_source.html#l00102">add_to_cache_uint64()</a>.</p>
<p>Adds a value to the cache with a uint64_t key, using string conversion. </p>
<p>Converts the uint64_t key to a string and adds the entry to the cache.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">cache</td><td>Pointer to the cache header. </td></tr>
<tr><tdclass="paramname">key</td><td>64-bit integer key to add. </td></tr>
<tr><tdclass="paramname">value</td><td>Pointer to the value to store. </td></tr>
</table>
</dd>
</dl>
<pclass="definition">Definition at line <aclass="el"href="lru_8c_source.html#l00102">102</a> of file <aclass="el"href="lru_8c_source.html">lru.c</a>.</p>
<pclass="reference">References <aclass="el"href="lru_8c_source.html#l00047">add_to_cache()</a>, <aclass="el"href="lru_8h_source.html#l00028">CacheEntry::key</a>, and <aclass="el"href="lru_8h_source.html#l00029">CacheEntry::value</a>.</p>
<p>Searches for a value in the cache using a string key and moves it to the front if found.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">cache</td><td>Pointer to the cache header. </td></tr>
<tr><tdclass="paramname">key</td><td>String key to search for. </td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>Pointer to the value if found, or NULL if not found. </dd></dl>
<pclass="definition">Definition at line <aclass="el"href="lru_8c_source.html#l00024">24</a> of file <aclass="el"href="lru_8c_source.html">lru.c</a>.</p>
<pclass="reference">References <aclass="el"href="lru_8h_source.html#l00048">CacheHeader::cache</a>, <aclass="el"href="lru_8h_source.html#l00030">CacheEntry::hh</a>, <aclass="el"href="lru_8h_source.html#l00028">CacheEntry::key</a>, and <aclass="el"href="lru_8h_source.html#l00029">CacheEntry::value</a>.</p>
<pclass="reference">Referenced by <aclass="el"href="lru_8c_source.html#l00088">find_in_cache_uint64()</a>.</p>
<p>Finds a value in the cache by uint64_t key, using string conversion. </p>
<p>Converts the uint64_t key to a string and searches for the entry in the cache.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">cache</td><td>Pointer to the cache header. </td></tr>
<tr><tdclass="paramname">key</td><td>64-bit integer key to search for. </td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>Pointer to the value if found, or NULL if not found. </dd></dl>
<pclass="definition">Definition at line <aclass="el"href="lru_8c_source.html#l00088">88</a> of file <aclass="el"href="lru_8c_source.html">lru.c</a>.</p>
<pclass="reference">References <aclass="el"href="lru_8c_source.html#l00024">find_in_cache()</a>, and <aclass="el"href="lru_8h_source.html#l00028">CacheEntry::key</a>.</p>
<liclass="footer">Generated by <ahref="https://www.doxygen.org/index.html"><imgclass="footer"src="doxygen.svg"width="104"height="31"alt="doxygen"/></a> 1.14.0 </li>