Lines Matching defs:cache
114 * Attempt to retrieve a module by name from a cache, and return false if not found.
117 jerryx_module_check_cache (jerry_value_t cache, /**< cache from which to attempt to retrieve the module by name */
123 /* Check if the cache has the module. */
124 jerry_value_t js_has_property = jerry_has_property (cache, module_name);
131 /* If the module is indeed in the cache, we return it. */
136 (*result) = jerry_get_property (cache, module_name);
148 * Attempt to cache a loaded module.
150 * @return the module on success, otherwise the error encountered when attempting to cache. In the latter case, the
154 jerryx_module_add_to_cache (jerry_value_t cache, /**< cache to which to add the module */
155 jerry_value_t module_name, /**< key at which to cache the module */
156 jerry_value_t module) /**< the module to cache */
158 jerry_value_t ret = jerry_set_property (cache, module_name, module);
209 /* If we find the module by its name we load it and cache it if it has an on_resolve () and complain otherwise. */
280 /* A NULL for result indicates that we are to delete the module from the cache if found. Let's do that here.*/
358 /* We were requested to clear the entire cache, so we bounce the context data in the most agnostic way possible. */
364 /* Delete the requested module from the cache if it's there. */