Versions in this module Expand all Collapse all v1 v1.0.0 Apr 14, 2023 Changes in this version + func NoopHash(query string, args []driver.NamedValue) (string, error) + type Config struct + Cache cache.Cacher + HashFunc func(query string, args []driver.NamedValue) (string, error) + OnError func(error) + type Interceptor struct + func NewInterceptor(config *Config) (*Interceptor, error) + func (i *Interceptor) ConnQueryContext(ctx context.Context, conn driver.QueryerContext, query string, ...) (context.Context, driver.Rows, error) + func (i *Interceptor) Disable() + func (i *Interceptor) Driver(d driver.Driver) driver.Driver + func (i *Interceptor) Enable() + func (i *Interceptor) Stats() *Stats + func (i *Interceptor) StmtQueryContext(ctx context.Context, conn driver.StmtQueryContext, query string, ...) (context.Context, driver.Rows, error) + type Stats struct + Errors uint64 + Hits uint64 + Misses uint64