Documentation
¶
Overview ¶
Package store syncs multiple go-micro stores
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *Options)
Option sets Cache Options
func SyncInterval ¶
SyncInterval sets the duration between syncs from L0 to L1
func SyncMultiplier ¶
SyncMultiplier sets the multiplication factor for time to wait each cache layer
type Options ¶
type Options struct {
// Stores represents layers in the cache in ascending order. L0, L1, L2, etc
Stores []store.Store
// SyncInterval is the duration between syncs from L0 to L1
SyncInterval time.Duration
// SyncMultiplier is the multiplication factor between each store.
SyncMultiplier int64
}
Options represents Cache options
Click to show internal directories.
Click to hide internal directories.