We may drop the file system caches on Linux to free up memory for applications. Kernels 2.6.16 and newer provide a mechanism via the /proc/ to make the kernel drop the page cache and/or inode and dentry caches on command. We can use this mechanism to…
写博客只是为了让自己学的更深刻,参考:https://tech.meituan.com/DiveIntoCategory.html 分类(Category)是个啥玩意儿这里就不多介绍了,这里主要是研究下,分类的底层实现. 1. 分类中为什么不能添加成员变量? 在Objective-C提供的runtime函数中,确实有一个class_addIvar()函数用于给类添加成员变量,但是文档中特别说明: This function may only be called after objc_alloca…
OSCache的使用: 一,环境的搭建: 1,把oscache.jar file放在 /WEB-INF/lib 目录下(Put the oscache.jar file in the /WEB-INF/lib directory) 2,如果commons-logging.jar文件不存在,也要把它放进/WEB-INF/lib 目录下 3,把/etc/oscache.properties放进类路径下 注意:Remember to escape any \ characters in Windows…