Commit abfaf8ea authored by Ajit Jagtap's avatar Ajit Jagtap
Browse files

Merge branch 'GCache_SSS' into 'master'

changes in gcCacheHelper

See merge request !35
parents c0c8894a 21b57b7d
Branches
1 merge request!35changes in gcCacheHelper
Showing with 2 additions and 2 deletions
......@@ -19,7 +19,7 @@ func (gchelper *CacheGCHelper) Setup(MaxEntries int, Expiration time.Duration) {
gchelper.MaxEntries = MaxEntries
gchelper.Expiration = Expiration
gchelper.GC = gcache.New(MaxEntries).
LRU().
LFU().
Build()
}
......@@ -28,7 +28,7 @@ func (gchelper *CacheGCHelper) SetupWithCallbackFunction(MaxEntries int, Expirat
gchelper.MaxEntries = MaxEntries
gchelper.Expiration = Expiration
gchelper.GC = gcache.New(MaxEntries).
LRU().
LFU().
EvictedFunc(func(key, value interface{}) {
f(key, value)
}).
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment