Archive: Namaste PHP AMQP framework v1.0 (2017-2020)
952 days continuous production uptime, 40k+ tp/s single node. Original corpo Bitbucket history not included — clean archive commit.
This commit is contained in:
40
stubs/testCacheMap.php
Normal file
40
stubs/testCacheMap.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* testCacheMap() -- stub utility used to test cacheMap features
|
||||
*
|
||||
* @author mike@givingassistant.org
|
||||
* @version 1.0
|
||||
*
|
||||
* HISTORY:
|
||||
* ========
|
||||
* 02-14-19 mks DB-116: original coding
|
||||
*
|
||||
*/
|
||||
|
||||
// initialization
|
||||
require_once(dirname(__DIR__) . '/config/sneakerstrap.inc');
|
||||
|
||||
$template = 'gatLogs';
|
||||
|
||||
//$vector = gasCache::fetchTemplateCacheMap($template, false);
|
||||
//if (!is_null($vector)) var_export($vector);
|
||||
//else echo 'error time - check logs' . $eos;
|
||||
|
||||
// simulate a PriceLine User request to ensure we can instantiate
|
||||
$meta = [
|
||||
META_TEMPLATE => TEMPLATE_CLASS_USERS,
|
||||
META_CLIENT => CLIENT_API_USER,
|
||||
CLIENT_AUTH_TOKEN => '136EA67A-B1E2-0A4B-2BD8-EE34D39DFDE1',
|
||||
META_DO_CACHE => false,
|
||||
META_EVENT_GUID => guid()
|
||||
];
|
||||
$request = [ BROKER_REQUEST => BROKER_REQUEST_FETCH ];
|
||||
$query = [ STRING_KEY => [ OPERAND_NULL => [ OPERATOR_EQ => [null] ]]];
|
||||
$request[BROKER_DATA] = [STRING_QUERY_DATA => $query];
|
||||
$request[BROKER_META_DATA] = $meta;
|
||||
$errors = [];
|
||||
if (!validateMetaData($request, $errors))
|
||||
echo 'validateMetaData() failed' . PHP_EOL;
|
||||
else
|
||||
echo 'validateMetaData() succeeded' . PHP_EOL;
|
||||
exit;
|
||||
Reference in New Issue
Block a user