diff --git a/src/PAMI/Message/Action/SorceryMemoryCacheExpireAction.php b/src/PAMI/Message/Action/SorceryMemoryCacheExpireAction.php new file mode 100644 index 00000000..4eded4c8 --- /dev/null +++ b/src/PAMI/Message/Action/SorceryMemoryCacheExpireAction.php @@ -0,0 +1,58 @@ + + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @version SVN: $Id$ + * @link http://marcelog.github.com/PAMI/ + * + * Copyright 2023 Sperl Viktor + * + * 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 + * @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); + } +} diff --git a/src/PAMI/Message/Action/SorceryMemoryCacheExpireObjectAction.php b/src/PAMI/Message/Action/SorceryMemoryCacheExpireObjectAction.php new file mode 100644 index 00000000..e1467980 --- /dev/null +++ b/src/PAMI/Message/Action/SorceryMemoryCacheExpireObjectAction.php @@ -0,0 +1,60 @@ + + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @version SVN: $Id$ + * @link http://marcelog.github.com/PAMI/ + * + * Copyright 2023 Sperl Viktor + * + * 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 + * @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); + } +} diff --git a/src/PAMI/Message/Action/SorceryMemoryCachePopulateAction.php b/src/PAMI/Message/Action/SorceryMemoryCachePopulateAction.php new file mode 100644 index 00000000..83ab8ea5 --- /dev/null +++ b/src/PAMI/Message/Action/SorceryMemoryCachePopulateAction.php @@ -0,0 +1,58 @@ + + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @version SVN: $Id$ + * @link http://marcelog.github.com/PAMI/ + * + * Copyright 2023 Sperl Viktor + * + * 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 + * @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); + } +} diff --git a/src/PAMI/Message/Action/SorceryMemoryCacheStaleAction.php b/src/PAMI/Message/Action/SorceryMemoryCacheStaleAction.php new file mode 100644 index 00000000..8d265243 --- /dev/null +++ b/src/PAMI/Message/Action/SorceryMemoryCacheStaleAction.php @@ -0,0 +1,58 @@ + + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @version SVN: $Id$ + * @link http://marcelog.github.com/PAMI/ + * + * Copyright 2023 Sperl Viktor + * + * 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 + * @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); + } +} diff --git a/src/PAMI/Message/Action/SorceryMemoryCacheStaleObjectAction.php b/src/PAMI/Message/Action/SorceryMemoryCacheStaleObjectAction.php new file mode 100644 index 00000000..ab0e3614 --- /dev/null +++ b/src/PAMI/Message/Action/SorceryMemoryCacheStaleObjectAction.php @@ -0,0 +1,64 @@ + + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 + * @version SVN: $Id$ + * @link http://marcelog.github.com/PAMI/ + * + * Copyright 2023 Sperl Viktor + * + * 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 + * @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'); + } + } +}