Module kdevice::cache[][src]

Expand description

Efficient cache layer based on LRU and hash map.

Structs

CacheData

Inner data structure of the cache.

CacheEntry

Representing a client of a cache entry.

CacheGuard

Guard representing the unique ownership of a cache entry.

CacheNode

Cache entry node.

CacheNodePtr

Pointer the a cache entry node.

Enums

CacheState

Status of a cache entry.

Traits

Cache

Functions

cache_get

Get a cache entry by key.

cache_invalidate

See Cache.

cache_stat

Return number of referenced nodes and dirty nodes.