Trait FastCheckCache

Source
pub trait FastCheckCache {
    // Required methods
    fn get(&self, key: FastCheckCacheKey) -> Option<FastCheckCacheItem>;
    fn set(&self, key: FastCheckCacheKey, value: FastCheckCacheItem);

    // Provided method
    fn hash_seed(&self) -> &'static str { ... }
}
Expand description

Cache for storing the results of fast checks based on a package.

Required Methods§

Provided Methods§

Source

fn hash_seed(&self) -> &'static str

Seed that is provided to the hash in order to cache bust it on version changes.

This defaults to the current deno_graph version.

Implementors§