Skip to content

Instantly share code, notes, and snippets.

@avdg
Created April 2, 2011 19:44
Embed
What would you like to do?
<?php
static function getCache($p_mOptions = null)
{
if (!is_array($p_mOptions)) {
$config = self::getConfig();
$options = isset($config->cache) ? $config->cache->toArray() : array();
if (is_string($p_mOptions)) {
$options['handler'] = $p_mOptions;
}
$p_mOptions = $options;
}
return $p_mOptions;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment