Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorcery actions #1

Merged
merged 2 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions src/PAMI/Message/Action/SorceryMemoryCacheExpireAction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?php
/**
* SorceryMemoryCacheExpire action message.
*
* PHP Version 5
*
* @category Pami
* @package Message
* @subpackage Action
* @author Sperl Viktor <[email protected]>
* @license http://marcelog.github.com/PAMI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAMI/
*
* Copyright 2023 Sperl Viktor <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
namespace PAMI\Message\Action;

/**
* SorceryMemoryCacheExpire action message.
*
* PHP Version 5
*
* @category Pami
* @package Message
* @subpackage Action
* @author Sperl Viktor <[email protected]>
* @license http://marcelog.github.com/PAMI/ Apache License 2.0
* @link http://marcelog.github.com/PAMI/
*/
class SorceryMemoryCacheExpireAction extends ActionMessage
{
/**
* Constructor.
*
* @param string $cache Cache name.
*
* @return void
*/
public function __construct($cache)
{
parent::__construct('SorceryMemoryCacheExpire');
$this->setKey('Cache', $cache);
}
}
60 changes: 60 additions & 0 deletions src/PAMI/Message/Action/SorceryMemoryCacheExpireObjectAction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?php
/**
* SorceryMemoryCacheExpireObject action message.
*
* PHP Version 5
*
* @category Pami
* @package Message
* @subpackage Action
* @author Sperl Viktor <[email protected]>
* @license http://marcelog.github.com/PAMI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAMI/
*
* Copyright 2023 Sperl Viktor <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
namespace PAMI\Message\Action;

/**
* SorceryMemoryCacheExpireObject action message.
*
* PHP Version 5
*
* @category Pami
* @package Message
* @subpackage Action
* @author Sperl Viktor <[email protected]>
* @license http://marcelog.github.com/PAMI/ Apache License 2.0
* @link http://marcelog.github.com/PAMI/
*/
class SorceryMemoryCacheExpireObjectAction extends ActionMessage
{
/**
* Constructor.
*
* @param string $cache Cache name.
* @param string $object Object name.
*
* @return void
*/
public function __construct($cache, $object)
{
parent::__construct('SorceryMemoryCacheExpireObject');
$this->setKey('Cache', $cache);
$this->setKey('Object', $object);
}
}
58 changes: 58 additions & 0 deletions src/PAMI/Message/Action/SorceryMemoryCachePopulateAction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?php
/**
* SorceryMemoryCachePopulate action message.
*
* PHP Version 5
*
* @category Pami
* @package Message
* @subpackage Action
* @author Sperl Viktor <[email protected]>
* @license http://marcelog.github.com/PAMI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAMI/
*
* Copyright 2023 Sperl Viktor <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
namespace PAMI\Message\Action;

/**
* SorceryMemoryCachePopulate action message.
*
* PHP Version 5
*
* @category Pami
* @package Message
* @subpackage Action
* @author Sperl Viktor <[email protected]>
* @license http://marcelog.github.com/PAMI/ Apache License 2.0
* @link http://marcelog.github.com/PAMI/
*/
class SorceryMemoryCachePopulateAction extends ActionMessage
{
/**
* Constructor.
*
* @param string $cache Cache name.
*
* @return void
*/
public function __construct($cache)
{
parent::__construct('SorceryMemoryCachePopulate');
$this->setKey('Cache', $cache);
}
}
58 changes: 58 additions & 0 deletions src/PAMI/Message/Action/SorceryMemoryCacheStaleAction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?php
/**
* SorceryMemoryCacheStale action message.
*
* PHP Version 5
*
* @category Pami
* @package Message
* @subpackage Action
* @author Sperl Viktor <[email protected]>
* @license http://marcelog.github.com/PAMI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAMI/
*
* Copyright 2023 Sperl Viktor <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
namespace PAMI\Message\Action;

/**
* SorceryMemoryCacheStale action message.
*
* PHP Version 5
*
* @category Pami
* @package Message
* @subpackage Action
* @author Sperl Viktor <[email protected]>
* @license http://marcelog.github.com/PAMI/ Apache License 2.0
* @link http://marcelog.github.com/PAMI/
*/
class SorceryMemoryCacheStaleAction extends ActionMessage
{
/**
* Constructor.
*
* @param string $cache Cache name.
*
* @return void
*/
public function __construct($cache)
{
parent::__construct('SorceryMemoryCacheStale');
$this->setKey('Cache', $cache);
}
}
64 changes: 64 additions & 0 deletions src/PAMI/Message/Action/SorceryMemoryCacheStaleObjectAction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?php
/**
* SorceryMemoryCacheStaleObject action message.
*
* PHP Version 5
*
* @category Pami
* @package Message
* @subpackage Action
* @author Sperl Viktor <[email protected]>
* @license http://marcelog.github.com/PAMI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAMI/
*
* Copyright 2023 Sperl Viktor <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
namespace PAMI\Message\Action;

/**
* SorceryMemoryCacheStaleObject action message.
*
* PHP Version 5
*
* @category Pami
* @package Message
* @subpackage Action
* @author Sperl Viktor <[email protected]>
* @license http://marcelog.github.com/PAMI/ Apache License 2.0
* @link http://marcelog.github.com/PAMI/
*/
class SorceryMemoryCacheStaleObjectAction extends ActionMessage
{
/**
* Constructor.
*
* @param string $cache Cache name.
* @param string $object Object name.
* @param bool $reload Reload from backend.
*
* @return void
*/
public function __construct($cache, $object, $reload = false)
{
parent::__construct('SorceryMemoryCacheStaleObject');
$this->setKey('Cache', $cache);
$this->setKey('Object', $object);
if ($reload !== false) {
$this->setKey('Reload', 'true');
}
}
}