MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / new

Method new

fendermint/eth/api/src/cache.rs:36–40  ·  view source on GitHub ↗
(capacity: usize)

Source from the content-addressed store, hash-verified

34 V: Clone,
35{
36 pub fn new(capacity: usize) -> Self {
37 Self {
38 cache: Arc::new(Mutex::new(LruCache::with_capacity(capacity))),
39 }
40 }
41
42 pub fn new_with_ttl(capacity: usize, ttl: Duration) -> Self {
43 Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected