pub trait CompiledContractCache: Send + Sync {
// Required methods
fn put(&self, key: &CryptoHash, value: CompiledContract) -> Result<()>;
fn get(&self, key: &CryptoHash) -> Result<Option<CompiledContract>>;
// Provided method
fn has(&self, key: &CryptoHash) -> Result<bool> { ... }
}
Expand description
Cache for compiled modules