Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
coreospackage
Commits
abfaf8ea
Commit
abfaf8ea
authored
7 years ago
by
Ajit Jagtap
Browse files
Options
Downloads
Plain Diff
Merge branch 'GCache_SSS' into 'master'
changes in gcCacheHelper See merge request
!35
parents
c0c8894a
21b57b7d
Branches
Branches containing commit
1 merge request
!35
changes in gcCacheHelper
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cachehelper/gcCacheHelper.go
+2
-2
cachehelper/gcCacheHelper.go
with
2 additions
and
2 deletions
cachehelper/gcCacheHelper.go
+
2
−
2
View file @
abfaf8ea
...
...
@@ -19,7 +19,7 @@ func (gchelper *CacheGCHelper) Setup(MaxEntries int, Expiration time.Duration) {
gchelper
.
MaxEntries
=
MaxEntries
gchelper
.
Expiration
=
Expiration
gchelper
.
GC
=
gcache
.
New
(
MaxEntries
)
.
L
R
U
()
.
L
F
U
()
.
Build
()
}
...
...
@@ -28,7 +28,7 @@ func (gchelper *CacheGCHelper) SetupWithCallbackFunction(MaxEntries int, Expirat
gchelper
.
MaxEntries
=
MaxEntries
gchelper
.
Expiration
=
Expiration
gchelper
.
GC
=
gcache
.
New
(
MaxEntries
)
.
L
R
U
()
.
L
F
U
()
.
EvictedFunc
(
func
(
key
,
value
interface
{})
{
f
(
key
,
value
)
})
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets