khromov/mustache-wordpress-cache

WordPress 缓存适配器用于 Mustache.php

1.3 2015-01-09 16:49 UTC

This package is not auto-updated.

Last update: 2024-09-28 16:10:17 UTC


README

WordPress 缓存适配器用于 Mustache.php

使用WordPress 对象缓存

示例

$mustache = new Mustache_Engine( array(
    ...
    'cache'           => \Khromov\Mustache_Cache\Mustache_Cache_WordPressCache()
    ...
  ) );

构造函数参数

构造缓存时不需要传递任何内容,但如果需要可以传递以下参数

$key_prefix - 要使用的对象缓存键前缀。(默认:"")
$group - 要使用的对象缓存组。(默认:"mustache-cache")