pub struct CacheConfig {
    db: u32,
    blockchain: u32,
    queue: u32,
    traces: u32,
    state: u32,
}
Expand description

Configuration for application cache sizes. All values are represented in MB.

Fields

db: u32

Size of rocksDB cache. Almost all goes to the state column.

blockchain: u32

Size of blockchain cache.

queue: u32

Size of transaction queue cache.

traces: u32

Size of traces cache.

state: u32

Size of the state cache.

Implementations

Creates new cache config with cumulative size equal total.

Creates new cache config with gitven details.

Size of db cache.

Size of block queue size limit

Size of the blockchain cache.

Size of the traces cache.

Size of the state cache.

Size of the jump-tables cache.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.