cache

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketCacheParameters added in v0.1.4

type BucketCacheParameters struct {
	BucketCacheExpiration time.Duration
	BucketCacheCleanUp    time.Duration

	NodeCacheExpiration time.Duration
	NodeCacheCleanUp    time.Duration

	AccountCacheExpiration time.Duration
	AccountCacheCleanUp    time.Duration
}

type DdcBucketContractCache

type DdcBucketContractCache interface {
	HookContractEvents() error
	Clear()
	ClearNodes()
	ClearBuckets()
	ClearAccounts()
	ClearNodeById(id bucket.NodeId)
	ClearBucketById(id bucket.BucketId)
	ClearAccountById(id bucket.AccountId)
	bucket.DdcBucketContract
}

func CreateDdcBucketContractCache

func CreateDdcBucketContractCache(ddcBucketContract bucket.DdcBucketContract, parameters BucketCacheParameters) DdcBucketContractCache

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL