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

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -