phalcon / incubator-annotations
Phalcon Incubator Annotations
Fund package maintenance!
phalcon
Open Collective
Requires
- php: >=7.2
- ext-phalcon: ^4.0
Requires (Dev)
- codeception/codeception: ^4.1
- codeception/module-asserts: ^1.0.0
- phalcon/ide-stubs: ^4.0
- phpstan/phpstan: ^0.12.18
- phpunit/php-token-stream: 3.1.2
- squizlabs/php_codesniffer: 3.5.1
- vimeo/psalm: 3.18.2
- vlucas/phpdotenv: ^4.1
- webmozart/glob: 4.1.0
This package is auto-updated.
Last update: 2024-10-19 22:51:08 UTC
README
Usage examples of the adapters available here:
Memcached
Stores the parsed annotations to Memcached.
This adapter uses a Phalcon\Cache\Adapter\Libmemcached
backend to store the cached content:
use Phalcon\Incubator\Annotations\Adapter\Memcached; $di->set( 'annotations', function () { return new Memcached( [ 'lifetime' => 8600, 'host' => 'localhost', 'port' => 11211, 'weight' => 1, 'prefix' => 'prefix.', ] ); } );
Redis
Stores the parsed annotations to Redis.
This adapter uses a Phalcon\Cache\Adapter\Redis
backend to store the cached content:
use Phalcon\Incubator\Annotations\Adapter\Redis; $di->set( 'annotations', function () { return new Redis( [ 'lifetime' => 8600, 'host' => 'localhost', 'port' => 6379, 'prefix' => 'annotations_', ] ); } );