protected static function get_prefixed_keys(Memcached $connection, $prefix) {
        $connkeys = $connection->getAllKeys();
        if (empty($connkeys)) {
            return array();
        }

        $keys = array();
        $start = strlen($prefix);
        foreach ($connkeys as $key) {
            if (strpos($key, $prefix) === 0) {
                $keys[] = substr($key, $start);
            }
        }
        return $keys;
    }
protected static function get_prefixed_keys(Memcached $connection, $prefix) {
        $connkeys = $connection->getAllKeys();
        if (empty($connkeys)) {
            return array();
        }

        $keys = array();
        $start = strlen($prefix);
        foreach ($connkeys as $key) {
            if (strpos($key, $prefix) === 0) {
                $keys[] = substr($key, $start);
            }
        }
        return $keys;
    }
protected static function get_prefixed_keys ( Memcached $ connection , $ prefix ) { $ connkeys = $ connection -> getAllKeys ( ) ; if ( empty ( $ connkeys ) ) { return array ( ) ; } $ keys = array ( ) ; $ start = strlen ( $ prefix ) ; foreach ( $ connkeys as $ key ) { if ( strpos ( $ key , $ prefix ) === 0 ) { $ keys [ ] = substr ( $ key , $ start ) ; } } return $ keys ; }
Returns all of the keys in the given connection that belong to this cache store instance.

Requires php memcached extension version 2.0.0 or greater.

@param Memcached $connection
@param string $prefix
@return array
Returns all of the keys in the given connection that belong to this cache store instance .