Lines Matching refs:cache

16 Wasmtime assumes all the options are in the `cache` section.
20 [cache]
21 directory = "/nfs-share/wasmtime-cache/"
26 Please refer to the [cache system] section to learn how it works.
39 Specifies where the cache directory is. Must be an absolute path.
49 Size of [cache worker] event queue.
50 If the queue is full, incoming cache usage events will be dropped.
59 Compression level used when a new cache file is being written by the [cache system].
69 Compression level used when the [cache worker] decides to recompress a cache file.
80 One of the conditions for the [cache worker] to recompress a cache file
91 When the [cache worker] is notified about a cache file being updated by the [cache system]
105 When the [cache worker] decides to recompress a cache file, it makes sure that
121 When the [cache worker] attempts acquiring a lock for some task,
129 the [cache system] should still work properly.
134 Similarly to the locks, the cache files or their metadata might
136 The cache system tries to keep these files as long as possible.
137 If the limits are not reached, the cache files will not be deleted.
139 If the user actually uses the cache file, the modification time will be updated.
149 Soft limit for the file count in the cache directory.
152 To learn more, please refer to the [cache system] section.
162 Soft limit for the total size* of files in the cache directory.
165 To learn more, please refer to the [cache system] section.
177 If [`file-count-soft-limit`] is exceeded and the [cache worker] performs the cleanup task,
178 then the worker will delete some cache files, so after the task,
183 To learn more, please refer to the [cache system] section.
193 If [`files-total-size-soft-limit`] is exceeded and [cache worker] performs the cleanup task,
194 then the worker will delete some cache files, so after the task,
199 To learn more, please refer to the [cache system] section.
205 [cache system]: #how-does-the-cache-work
206 [cache worker]: #how-does-the-cache-work
210 How does the cache work?
215 and configuring the cache.
217 There are two main components - the *cache system* and the *cache worker*.
222 Handles GET and UPDATE cache requests.
223 - **GET request** - simply loads the cache from disk if it is there.
226 In case of successful handling of a request, it notifies the *cache worker* about this
229 new events until the *cache worker* pops some event from the queue.
234 The cache worker runs in a single thread with lower priority and pops events from the queue
238 1. Read the statistics file for the cache file,
240 2. Attempt recompressing the cache file if all of the following conditions are met:
249 1. Write a fresh statistics file for the cache file.
250 2. Clean up the cache if no worker has attempted to do this within the last [`cleanup-interval`].
252 - all unrecognized files and expired task locks in cache directory will be deleted
256 Wasmtime uses [Least Recently Used (LRU)] cache replacement policy and requires that