You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using simple gcache. I've implemented LoaderFunc and addedFunc using a database as a store.
When gcache loads a new value using LoaderFunc and set new one to a cache. Set function will call addedFunc if it exists. But the new value already exists in a db. So call "addedFunc" is redundantly in that case.
Is it expected behaviour? Does any workaround exist in such case?
The text was updated successfully, but these errors were encountered:
serjk
changed the title
Redundant "addedFunc" call
Redundant "addedFunc" call in case LoaderFunc call
Jun 14, 2017
serjk
changed the title
Redundant "addedFunc" call in case LoaderFunc call
Redundant "addedFunc" in case "LoaderFunc" call
Jun 14, 2017
I'm using simple gcache. I've implemented LoaderFunc and addedFunc using a database as a store.
When gcache loads a new value using LoaderFunc and set new one to a cache. Set function will call addedFunc if it exists. But the new value already exists in a db. So call "addedFunc" is redundantly in that case.
Is it expected behaviour? Does any workaround exist in such case?
The text was updated successfully, but these errors were encountered: