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:
18
stubs/testSessionExpire.php
Normal file
18
stubs/testSessionExpire.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
require_once(dirname(__DIR__) . '/config/sneakerstrap.inc');
|
||||
$errors = [];
|
||||
$tokenGUID = 'D8637D12-B514-2916-D01C-05E416755451';
|
||||
$request = [ STRING_GUID_KEY => $tokenGUID, STRING_TOK_TYPE => STRING_TOK_TYPE_SES];
|
||||
$meta = [ META_TEMPLATE => TEMPLATE_CLASS_SESSIONS, META_CLIENT => CLIENT_SYSTEM];
|
||||
/** @var gacMongoDB $obj */
|
||||
$obj = grabWidget($meta, $tokenGUID,$errors);
|
||||
if (is_null($obj)) {
|
||||
var_export($errors);
|
||||
echo PHP_EOL;
|
||||
exit('failed to create widget' . $eos);
|
||||
}
|
||||
/** @var gatSessions $template */
|
||||
$template = $obj->template;
|
||||
$payload = $template->buildExpireSessionPayload($request, $errors);
|
||||
$obj->_updateRecord($payload);
|
||||
echo 'Program ' .((!$obj->status) ? 'failed' : 'succeeded') . $eos;
|
||||
Reference in New Issue
Block a user