Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
5583fa20
authored
2014-03-10 20:52:04 +0800
by
slene
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
orm add ResetModelCache api for test case
1 parent
00a410ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
orm/models.go
orm/models.go
View file @
5583fa2
...
...
@@ -98,3 +98,9 @@ func (mc *_modelCache) clean() {
mc
.
cacheByFN
=
make
(
map
[
string
]
*
modelInfo
)
mc
.
done
=
false
}
// Clean model cache. Then you can re-RegisterModel.
// Common use this api for test case.
func
ResetModelCache
()
{
modelCache
.
clean
()
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment