Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Annotation/CacheDir.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use Attribute;
use Ray\Di\Di\Qualifier;

/**
* Qualifies the directory of the file-based cache adapters
*/
#[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_METHOD)]
#[Qualifier]
final class CacheDir
Expand Down
3 changes: 3 additions & 0 deletions src/Annotation/CacheNamespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use Attribute;
use Ray\Di\Di\Qualifier;

/**
* Qualifies the namespace that separates the cache keys of an application
*/
#[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_METHOD)]
#[Qualifier]
final class CacheNamespace
Expand Down
3 changes: 3 additions & 0 deletions src/Annotation/Local.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use Attribute;
use Ray\Di\Di\Qualifier;

/**
* Qualifies the cache that each web server keeps to itself
*/
#[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_METHOD)]
#[Qualifier]
final class Local
Expand Down
3 changes: 3 additions & 0 deletions src/Annotation/MemcacheConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use Attribute;
use Ray\Di\Di\Qualifier;

/**
* Qualifies the list of Memcached servers as [host, port] pairs
*/
#[Attribute(Attribute::TARGET_METHOD)]
#[Qualifier]
final class MemcacheConfig
Expand Down
3 changes: 3 additions & 0 deletions src/Annotation/RedisConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use Attribute;
use Ray\Di\Di\Qualifier;

/**
* Qualifies the Redis server as [host, port, dbIndex?], where the optional dbIndex selects the database
*/
#[Attribute]
#[Qualifier]
final class RedisConfig
Expand Down
4 changes: 4 additions & 0 deletions src/Annotation/Shared.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
use Attribute;
use Ray\Di\Di\Qualifier;

/**
* Qualifies the shared cache, whose scope is set by the installed module
* (Psr6RedisModule and Psr6MemcachedModule share it among the web servers)
*/
#[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_METHOD)]
#[Qualifier]
final class Shared
Expand Down
Loading