只使用lru
This commit is contained in:
parent
cfd5f258cc
commit
4be2fdb497
5
gorm.go
5
gorm.go
@ -69,11 +69,6 @@ type Config struct {
|
|||||||
callbacks *callbacks
|
callbacks *callbacks
|
||||||
cacheStore *sync.Map
|
cacheStore *sync.Map
|
||||||
}
|
}
|
||||||
type PrepareStmtLruConfig struct {
|
|
||||||
Size int
|
|
||||||
TTL time.Duration
|
|
||||||
Open bool
|
|
||||||
}
|
|
||||||
|
|
||||||
// Apply update config to new config
|
// Apply update config to new config
|
||||||
func (c *Config) Apply(config *Config) error {
|
func (c *Config) Apply(config *Config) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user