lithium\storage\cache\Adapter::_removeScopePrefix PHP Method

_removeScopePrefix() protected method

Removes scope prefix from keys.
protected _removeScopePrefix ( string $scope, array $data, string $separator = ':' ) : array
$scope string Scope initially used when prefixing.
$data array
$separator string Separator used when prefix keys initially.
return array Keys array with prefix removed from each key.
    protected function _removeScopePrefix($scope, array $data, $separator = ':')
    {
        $results = array();
        $prefix = strlen("{$scope}{$separator}");
        foreach ($data as $key => $value) {
            $results[substr($key, $prefix)] = $value;
        }
        return $results;
    }