The library comes with 6 drivers: APC, file, memcached, redis, wincache and a dummy driver. Which driver you can use is dependant on your situation. In order to build this a Driver library has been implemented. A driver can be called using (FuzeWorks\)Libraries::getDriver($libraryName); This will load the driver library and the requested library. Regular library rules apply. Every driver comes with the same methods (found in documentation) but the 2 most important are $driver->save($objectName, $object, $time); whereby $time is an integer in minutes; and $driver->get($objectName); which will receive the cached value; To load a cache driver you need to run something like the following: $cache = FuzeWorks\Libraries::getDriver('cache', array('adapter' => 'apc', 'backup' => 'file')); This will try and load the APC cache driver. If this fails it will try and load the file driver. If all fails it will load the dummy driver. The dummy driver does not actually save anything, it's just a placeholder until you fix your environment. More information can be found in the documentation. |
||
---|---|---|
Application | ||
Core | ||
Modules | ||
tests | ||
.gitignore | ||
.htaccess | ||
build.xml | ||
composer.json | ||
CONTRIBUTING.md | ||
Database.sql | ||
DCO | ||
index.php | ||
LICENSE | ||
phpunit.xml | ||
README.md | ||
VERSION |
FuzeWorks - Readme
Version 0.0.1-DEV
A versatile PHP Framework built to perform.
https://fuzeworks.techfuze.net/
Summary
FuzeWorks is a flexible PHP Framework made for the requirements of todays web. For a summary of features, list of requirements, and installation instructions, please see the documentation in the ./doc/ folder or at http://fuzeworks.techfuze.net/
Copyright
Copyright © 2013 onwards -- TechFuze
Certain libraries are copyrighted by their respective authors; see the full copyright list for details.
For full copyright information, please see ./doc/copyright.html
License
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3, as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Licensing of current contributions
Beginning on 2015-08-26, new contributions to this codebase are all licensed under terms compatible with GPLv3-or-later. FuzeWorks is currently transitioning older code to GPLv3-or-later, but work is not yet complete.
Enjoy!
TechFuze