Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringBytes ¶
Types ¶
type CacheConfig ¶
type LocalCacheBatch ¶
type LocalCacheBatch struct {
// contains filtered or unexported fields
}
func (*LocalCacheBatch) Delete ¶
func (b *LocalCacheBatch) Delete(key []byte) error
func (*LocalCacheBatch) Replay ¶
func (b *LocalCacheBatch) Replay(w ethdb.KeyValueWriter) error
func (*LocalCacheBatch) Reset ¶
func (b *LocalCacheBatch) Reset()
func (*LocalCacheBatch) ValueSize ¶
func (b *LocalCacheBatch) ValueSize() int
func (*LocalCacheBatch) Write ¶
func (b *LocalCacheBatch) Write() error
type LocalCacheDatabase ¶
type LocalCacheDatabase struct { ethdb.KeyValueStore // contains filtered or unexported fields }
func NewLocalCacheDatabase ¶
func NewLocalCacheDatabase(remoteDB ethdb.KeyValueStore, cacheConfig CacheConfig) *LocalCacheDatabase
func (*LocalCacheDatabase) Delete ¶
func (c *LocalCacheDatabase) Delete(key []byte) error
func (*LocalCacheDatabase) Get ¶
func (c *LocalCacheDatabase) Get(key []byte) (ret []byte, err error)
func (*LocalCacheDatabase) NewBatch ¶
func (c *LocalCacheDatabase) NewBatch() ethdb.Batch
Click to show internal directories.
Click to hide internal directories.