Documentation
¶
Overview ¶
Package cacheconfig creates native SQLX cache services from authored settings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
func Validate(settings *spec.CacheSettings) error
Validate checks settings without constructing a service or opening a connection.
Types ¶
type Cases ¶
type Cases struct {
Settings *spec.CacheWarmupSettings
Required map[string]bool
EntryCost int
}
Cases expands authored parameter alternatives without binding or converting values. Canonical Bindly source providers retain those responsibilities.
type Config ¶
type Config struct {
Settings *spec.CacheSettings
Identity string
// Aerospike is owned by the caller and closed after all readers and warmups drain.
Aerospike *aerospike.Pool
}
Config identifies one prepared view's native cache namespace. Identity must include the component and the view path, so unrelated connectors and views cannot share entries solely because their SQL text happens to match.
func (Config) Validate ¶
func (c Config) Validate() (*Validation, error)
Validate checks cache configuration without creating a provider, opening a pool, touching storage or performing network I/O.