Skip to content

Commit

Permalink
Update db_alias.go (#5171)
Browse files Browse the repository at this point in the history
  • Loading branch information
msiripurapu05 committed Mar 9, 2023
1 parent c280209 commit 3c6986a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions orm/db_alias.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,3 +467,7 @@ func newStmtDecoratorLruWithEvict() *lru.Cache {
})
return cache
}

func ResetDataBaseCache() {
dataBaseCache = &_dbCache{cache: make(map[string]*alias)}
}

0 comments on commit 3c6986a

Please sign in to comment.