├── litecache.sublime-project ├── .idea ├── copyright │ └── profiles_settings.xml ├── vcs.xml ├── fileTemplates │ └── includes │ │ └── PHP File Header.php ├── inspectionProfiles │ ├── profiles_settings.xml │ └── Project_Default.xml ├── modules.xml ├── codeStyleSettings.xml ├── php.xml ├── misc.xml └── litecache.iml ├── examples ├── sample_data │ ├── test_ini.ini │ ├── test_file.txt │ ├── test_json.json │ └── slow_script.php ├── cache-file.php ├── cache-json.php ├── cache-ini.php ├── cache-output.php └── cache-request.php ├── .gitignore ├── .travis.yml ├── phpunit.xml ├── CONTRIBUTING.md ├── tests ├── bootstrap.php └── SilentByte │ └── LiteCache │ ├── FileProducerTest.php │ ├── IniProducerTest.php │ ├── OutputProducerTest.php │ ├── VirtualFileSystemTrait.php │ ├── JsonProducerTest.php │ ├── PathHelperTest.php │ ├── ObjectComplexityAnalyzerTest.php │ └── LiteCacheTest.php ├── phpdoc.dist.xml ├── psalm.xml ├── makefile ├── src └── SilentByte │ └── LiteCache │ ├── CacheProducerException.php │ ├── CacheArgumentException.php │ ├── CacheException.php │ ├── FileProducer.php │ ├── IniProducer.php │ ├── OutputProducer.php │ ├── JsonProducer.php │ ├── PathHelper.php │ ├── ObjectComplexityAnalyzer.php │ └── LiteCache.php ├── sami.php ├── LICENSE.txt ├── composer.json ├── CHANGELOG.md └── README.md /litecache.sublime-project: -------------------------------------------------------------------------------- 1 | { 2 | "folders": 3 | [ 4 | { 5 | "path": "." 6 | } 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /examples/sample_data/test_ini.ini: -------------------------------------------------------------------------------- 1 | 2 | [server] 3 | host = myhost.test.com 4 | user = root 5 | password = root 6 | 7 | -------------------------------------------------------------------------------- /examples/sample_data/test_file.txt: -------------------------------------------------------------------------------- 1 | Hello World! 2 | 3 | The purpose of this file is to demonstrate 4 | file cache functionality. 5 | 6 | Cheers! 7 | -------------------------------------------------------------------------------- /examples/sample_data/test_json.json: -------------------------------------------------------------------------------- 1 | { 2 | "server": { 3 | "host": "myhost.test.com", 4 | "user": "root", 5 | "password": "root" 6 | } 7 | } -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | docs/ 3 | .litecache/ 4 | .sami/ 5 | 6 | composer.lock 7 | *.test.php 8 | *.sublime-workspace 9 | 10 | .idea/workspace.xml 11 | .idea/tasks.xml 12 | .idea/dictionaries 13 | .idea/markdown* 14 | 15 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # 2 | # Travis CI Configuration 3 | # 4 | 5 | language: php 6 | 7 | php: 8 | - 7.0 9 | - 7.1 10 | 11 | install: 12 | - composer install --no-interaction 13 | 14 | script: 15 | - vendor/bin/phpunit 16 | 17 | -------------------------------------------------------------------------------- /.idea/fileTemplates/includes/PHP File Header.php: -------------------------------------------------------------------------------- 1 | /** 2 | * SilentByte LiteCache Library 3 | * 4 | * @copyright 2017 SilentByte 5 | * @license https://opensource.org/licenses/MIT MIT 6 | */ 7 | 8 | declare(strict_types = 1); 9 | 10 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ./tests/ 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 2 | Contributing 3 | ============ 4 | 5 | Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this work by you shall be licensed under the [MIT License](https://opensource.org/licenses/MIT), without any additional terms or conditions. 6 | 7 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /tests/bootstrap.php: -------------------------------------------------------------------------------- 1 | 6 | * @license https://opensource.org/licenses/MIT MIT 7 | */ 8 | 9 | declare(strict_types = 1); 10 | 11 | require __DIR__ . '/../vendor/autoload.php'; 12 | 13 | -------------------------------------------------------------------------------- /examples/sample_data/slow_script.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 9 | -------------------------------------------------------------------------------- /phpdoc.dist.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | LiteCache 4 | 5 | docs 6 | 7 | 8 | docs 9 | 10 | 11 | src 12 | 13 | 14 |