kohana-cache

    1熱度

    2回答

    我有一個緩存模塊配置的問題。 我也做了以下內容: 把Cache::$default = 'memcachetag';在bootstrap.php中 複製的模塊/高速緩存/配置/ config.php中使用以下的配置應用/配置/ config.php中: return array( // Override the default configuration 'memcachetag

    0熱度

    1回答

    一個替代當內存緩存在PHP中的工作,我靠,能像這樣替換現有值: $cache = new Memcache; $cache->set('foo', 'bar'); $cache->replace('foo', 'baz'); 不幸的是,看起來並不像Kohana_Cache中的Kohana 3.1支持更換() 方法。在這種情況下推薦的程序是什麼?

    0熱度

    2回答

    我使用Kohana 2.x,我想爲數據庫結果實現緩存。對於我嘗試如下, $cache = Cache::instance(); $siteSettings = $cache->get('siteSettings'); if (! $siteSettings) { // for 1st request only it entering, this I've verified