feat(storage): Add optional write-through cache to sql store
This commit is contained in:
@ -19,6 +19,12 @@ type Config struct {
|
||||
// Type of store
|
||||
// If blank, uses the default in-memory store
|
||||
Type Type `yaml:"type"`
|
||||
|
||||
// Caching is whether to enable caching.
|
||||
// This is used to drastically decrease read latency by pre-emptively caching writes
|
||||
// as they happen, also known as the write-through caching strategy.
|
||||
// Does not apply if Config.Type is not TypePostgres or TypeSQLite.
|
||||
Caching bool `yaml:"caching,omitempty"`
|
||||
}
|
||||
|
||||
// ValidateAndSetDefaults validates the configuration and sets the default values (if applicable)
|
||||
|
Reference in New Issue
Block a user