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
Several methods have a similar descriptor to the following in the docs:
k and v contents may be modified after returning from Set.
Upon first reading, I assumed that the Set() method would modify the k and v byte arrays and copies should be passed into the fastcache methods.
I couldn't believe it and only after spending some time digging in the source did I realize that these sentences probably meant that the fastcache methods themselves stored copies of the k and v arrays and that you didn't have to worry about reusing the originals.
Just a heads up, I found the particular wording confusing, perhaps consider a slightly different wording.
The text was updated successfully, but these errors were encountered:
Several methods have a similar descriptor to the following in the docs:
k and v contents may be modified after returning from Set.
Upon first reading, I assumed that the Set() method would modify the k and v byte arrays and copies should be passed into the fastcache methods.
I couldn't believe it and only after spending some time digging in the source did I realize that these sentences probably meant that the fastcache methods themselves stored copies of the k and v arrays and that you didn't have to worry about reusing the originals.
Just a heads up, I found the particular wording confusing, perhaps consider a slightly different wording.
Thanks for your explanation. I think "k and v contents may be modified after returning from Set." more like source code comment rather then api usage.
Several methods have a similar descriptor to the following in the docs:
Upon first reading, I assumed that the Set() method would modify the
k
andv
byte arrays and copies should be passed into the fastcache methods.I couldn't believe it and only after spending some time digging in the source did I realize that these sentences probably meant that the fastcache methods themselves stored copies of the
k
andv
arrays and that you didn't have to worry about reusing the originals.Just a heads up, I found the particular wording confusing, perhaps consider a slightly different wording.
The text was updated successfully, but these errors were encountered: