這個版本沒有太多的新特性,大部分為改進原有版本的問題,版本主要的工作包括:
version 0.6 (2009.10.22, base on svn reversion 85)
1) rename ccache_create and ccache_destroy to ccache_open and ccache_close
respectly
2) when open the cache, use ini style configure file to config the cache
3) rename the API ccache_replace to ccache_set
4) all the funcions's first param is cache
5) when open the cache, init the compare function pointer, so when use the
cache API does not need to specify the compare function
6) add install/uninstall target in Makefile
7) use Bob Jenkins hash algorithm instead of the previous one.
項目地址在:
commoncache另外,項目的wiki頁面我新增了一些解釋commoncache實現(xiàn)和簡單的demo代碼。
另外,感謝
helloghui提出代碼中的一個BUG。