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
[PINDiskCache] Respect small byteLimit settings by checking object size in setObject: (pinterest#198)
* [PINDiskCache] Respect small byteLimit settings by checking object size in setObject:
This serves as a mechanism for some clients, like users of the Texture framework, to
effectively disable the PINDiskCache by setting a byteLimit of 1.
Before this change, the cache would transiently exceed the byte limit by writing
the file anyway, and then immediately deleting it.
This change will not affect most users of PINDiskCache, but is important for this
specific use case.
* [PINDiskCache] Fast-path objectForKey: when the cache is empty.
* Fill out changelog
* Ensure lock is acquired before early return in read path; fix test.
0 commit comments