//
pkg.gl
Category
github.com/cockroachdb/pebble/v2
internal
cache
package
2.0.2
Repository:
https://github.com/cockroachdb/pebble.git
Documentation:
pkg.go.dev
Overview
Versions
2
Dependencies
13
Dependents
6
Files
1.1k SLOC
#
Functions
Alloc
Alloc allocates a byte slice of the specified size, possibly reusing previously allocated but unused memory.
Free
Free frees the specified value.
New
New creates a new cache of the specified size.
#
Constants
ValueMetadataSize
ValueMetadataSize denotes the number of bytes of metadata allocated for a cache entry.
#
Structs
Cache
Cache implements Pebble's sharded block cache.
Handle
Handle provides a strong reference to a value in the cache.
Metrics
Metrics holds metrics for the cache.
Value
Value holds a reference counted immutable value.
#
Type aliases
ID
ID is a namespace for file numbers.