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
That makes sense, so we could include Unsafe get methods. I'm curious about the best way to approach this. Instead of modifying the existing bigcache interface, maybe we could create an alternative implementation, like UnsafeBigCache, where all method signatures would remain unchanged. 🤔
However, there’s a downside to consider: this approach might lead to unintended effects when data is overwritten without a way to notify the user.
Also, I'm wondering why we need to copy to dst — can’t we just return data[headersSizeInBytes+length:] directly?
I think adding a GetWithUnsafe is enough, and any user who calls this method must take responsibility for data security and ensure that it is not modified.
What is the issue you are having?
In some scenarios, the data retrieved from the cache will not be modified and could be directly returned.
What is BigCache doing that it shouldn't?
to be --- to recycle the 'dst'
The text was updated successfully, but these errors were encountered: