| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- namespace ModulesGarden\ProxmoxAddon\Core\Interfaces;
- /**
- *
- * @author Rafał Ossowski <rafal.os@modulesgarden.com>
- */
- interface CacheManagerInterface
- {
- /**
- * @param string $key
- * @return $this
- * @throws \ModulesGarden\ProxmoxAddon\Core\HandlerError\Exceptions\MGModuleException
- */
- public function setKey($key = 'default');
- /**
- * @return string
- */
- public function getKey();
- /**
- * @param mixed $data
- * @return $this
- */
- public function setData($data = null);
- /**
- * @return mixed
- * @throws \ModulesGarden\ProxmoxAddon\Core\HandlerError\Exceptions\MGModuleException
- */
- public function getData();
- /**
- * @return $this
- * @throws \ModulesGarden\ProxmoxAddon\Core\HandlerError\Exceptions\MGModuleException
- */
- public function save();
- /**
- * @return $this
- * @throws \ModulesGarden\ProxmoxAddon\Core\HandlerError\Exceptions\MGModuleException
- */
- public function remove();
- /**
- * @return $this
- * @throws \ModulesGarden\ProxmoxAddon\Core\HandlerError\Exceptions\MGModuleException
- */
- public function clearAll();
- /**
- * @return type
- * @throws \ModulesGarden\ProxmoxAddon\Core\HandlerError\Exceptions\MGModuleException
- */
- public function exist();
- }
|