src/mg/Ding/Cache/Impl/FileCacheImpl.php
public static function getInstance($options = array())
    {
        $dir = $options['directory'];
        if (!isset(self::$_instances[$dir])) {
            $ret = new FileCacheImpl($options);
            self::$_instances[$dir] = $ret;
            $ret->_init();
        } else {
            $ret = self::$_instances[$dir];
        }
        return $ret;
    }
public static function getInstance($options = array())
    {
        $dir = $options['directory'];
        if (!isset(self::$_instances[$dir])) {
            $ret = new FileCacheImpl($options);
            self::$_instances[$dir] = $ret;
            $ret->_init();
        } else {
            $ret = self::$_instances[$dir];
        }
        return $ret;
    }
Returns an instance of a cache.

@param array $options Options for the cache backend.

@return DummyCacheImpl