多組 Pix_Cache
Pix_Cache::addServer 的參數有三個:
- string Adapter: Pix_Cache 底層的儲存方式
- array Options: 相關的參數
- [optional] string Group: Pix_Cache 群組名稱,可以不指定
在你的 init.inc.php 內可以增加:
之後可以在程式的任何地方使用:
因此,你可以依不同性質的 cache 存放在不同的群組中
Pix_Cache::addServer 的參數有三個:
在你的 init.inc.php 內可以增加:
之後可以在程式的任何地方使用:
因此,你可以依不同性質的 cache 存放在不同的群組中