ios - Default SDWebImage cache size -
default cache size of sdwebimage. need both number of files , size of total file can handle.
if search through sdwebimage files on github "maxcachesize" you'll see there's no default value. since it's @property won't initialised garbage numbers, set 0. apple docs:
the alloc method has 1 other important task, clear out memory allocated object’s properties setting them zero. avoids usual problem of memory containing garbage whatever stored before...
so there's no restriction default judging condition in clean code:
if (self.maxcachesize > 0 && currentcachesize > self.maxcachesize) { //clean code; }
afaik there no maximum amount of space application can use either. can eat of available space on device if wish.
Comments
Post a Comment