File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77use Attribute ;
88
9+ /**
10+ * Marks a resource class as cacheable with TTL-based caching
11+ *
12+ * Interceptors bound:
13+ * - CacheInterceptor (onGet methods)
14+ * - CommandInterceptor (onPut/onPatch/onDelete methods)
15+ *
16+ * @see https://bearsunday.github.io/manuals/1.0/en/cache.html#cacheable
17+ */
918#[Attribute(Attribute::TARGET_CLASS )]
1019final class Cacheable
1120{
Original file line number Diff line number Diff line change 1010use BEAR \QueryRepository \DonutCommandInterceptor ;
1111
1212/**
13+ * Marks a resource for full response caching (entire content is cacheable)
14+ *
15+ * Interceptors bound:
16+ * - DonutCacheableResponseInterceptor (onGet methods when applied to class)
17+ * - DonutCommandInterceptor (onPut/onPatch/onDelete methods when applied to class)
18+ * - DonutCacheInterceptor (when applied to method)
19+ *
1320 * @see DonutCacheModule
14- * @see DonutCacheableResponseInterceptor
15- * @see DonutCommandInterceptor
21+ * @see https://bearsunday.github.io/manuals/1.0/en/cache.html#donut-cache
1622 */
1723#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS )]
1824final class CacheableResponse
Original file line number Diff line number Diff line change 99use BEAR \QueryRepository \DonutCommandInterceptor ;
1010
1111/**
12+ * Marks a resource for donut caching (partial caching with embedded dynamic content)
13+ *
14+ * Interceptors bound:
15+ * - DonutCacheInterceptor (onGet methods when applied to class, or any method when applied to method)
16+ *
1217 * @see DonutCacheModule
13- * @see DonutCacheInterceptor
14- * @see DonutCommandInterceptor
18+ * @see https://bearsunday.github.io/manuals/1.0/en/cache.html#donut-cache
1519 */
1620#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS )]
1721final class DonutCache
Original file line number Diff line number Diff line change 1515 *
1616 * Builds a complex Cache-Control header
1717 *
18+ * Interceptors bound:
19+ * - HttpCacheInterceptor (onGet methods)
20+ *
1821 * @see HttpCacheInterceptor
22+ * @see https://bearsunday.github.io/manuals/1.0/en/cache.html
1923 */
2024#[Attribute(Attribute::TARGET_CLASS )]
2125final class HttpCache extends AbstractCacheControl
Original file line number Diff line number Diff line change 1212 *
1313 * Simplified notation to say that you don't want anything cached
1414 *
15+ * Interceptors bound:
16+ * - HttpCacheInterceptor (onGet methods)
17+ *
1518 * @see HttpCacheInterceptor
19+ * @see https://bearsunday.github.io/manuals/1.0/en/cache.html
1620 */
1721#[Attribute(Attribute::TARGET_CLASS )]
1822final class NoHttpCache extends AbstractCacheControl
Original file line number Diff line number Diff line change 66
77use Attribute ;
88
9- /** @see RefreshInterceptor */
9+ /**
10+ * Purges cache for specified URI after command execution
11+ *
12+ * Interceptors bound:
13+ * - RefreshInterceptor (when applied to non-Cacheable classes)
14+ * - CommandInterceptor (when applied to Cacheable classes)
15+ *
16+ * @see https://bearsunday.github.io/manuals/1.0/en/cache.html#tag-based-cache-invalidation
17+ */
1018#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE )]
1119final class Purge extends AbstractCommand
1220{
Original file line number Diff line number Diff line change 77use Attribute ;
88use BEAR \QueryRepository \RefreshInterceptor ;
99
10- /** @see RefreshInterceptor */
10+ /**
11+ * Refreshes cache for specified URI after command execution
12+ *
13+ * Interceptors bound:
14+ * - RefreshInterceptor (when applied to non-Cacheable classes)
15+ * - CommandInterceptor (when applied to Cacheable classes)
16+ *
17+ * @see https://bearsunday.github.io/manuals/1.0/en/cache.html#event-driven-content
18+ */
1119#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE )]
1220final class Refresh extends AbstractCommand
1321{
Original file line number Diff line number Diff line change 77use Attribute ;
88use BEAR \QueryRepository \DonutCommandInterceptor ;
99
10- /** @see DonutCommandInterceptor */
10+ /**
11+ * Refreshes donut cache after command execution
12+ *
13+ * Interceptors bound:
14+ * - DonutCacheInterceptor
15+ *
16+ * @see https://bearsunday.github.io/manuals/1.0/en/cache.html#cache-invalidation
17+ */
1118#[Attribute(Attribute::TARGET_METHOD )]
1219final class RefreshCache
1320{
You can’t perform that action at this time.
0 commit comments