diff --git a/src/Annotation/CacheDir.php b/src/Annotation/CacheDir.php index 7d4644c..9bf7e48 100644 --- a/src/Annotation/CacheDir.php +++ b/src/Annotation/CacheDir.php @@ -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 diff --git a/src/Annotation/CacheNamespace.php b/src/Annotation/CacheNamespace.php index 7a01598..d5fdbce 100644 --- a/src/Annotation/CacheNamespace.php +++ b/src/Annotation/CacheNamespace.php @@ -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 diff --git a/src/Annotation/Local.php b/src/Annotation/Local.php index 0d6f64b..29ce29e 100644 --- a/src/Annotation/Local.php +++ b/src/Annotation/Local.php @@ -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 diff --git a/src/Annotation/MemcacheConfig.php b/src/Annotation/MemcacheConfig.php index 28a39de..285d2e9 100644 --- a/src/Annotation/MemcacheConfig.php +++ b/src/Annotation/MemcacheConfig.php @@ -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 diff --git a/src/Annotation/RedisConfig.php b/src/Annotation/RedisConfig.php index 220faa9..e6fee43 100644 --- a/src/Annotation/RedisConfig.php +++ b/src/Annotation/RedisConfig.php @@ -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 diff --git a/src/Annotation/Shared.php b/src/Annotation/Shared.php index 79c4b5b..c73d3f3 100644 --- a/src/Annotation/Shared.php +++ b/src/Annotation/Shared.php @@ -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