bear / query-repository
AboutResource Query Responsibility Segregation (RQRS) is a caching framework for BEAR.Sunday that optimizes performance by separating query and command responsibilities. It features event-driven cache invalidation, dependency resolution, donut caching, CDN integration, and conditional requests.
Installs: 498 698
Dependents: 3
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 9
Open Issues: 0
pkg:composer/bear/query-repository
Requires
- php: ^8.1
 - bear/resource: ^1.16.1
 - bear/sunday: ^1.5
 - doctrine/annotations: ^1.8 || ^2.0
 - doctrine/cache: ^1.12 || ^2.0
 - psr/cache: ^1.0 || ^2.0 || ^3.0
 - ray/aop: ^2.16
 - ray/di: ^2.17.2
 - ray/psr-cache-module: ^1.3.4
 - symfony/cache: ^5.3 || ^6.0 || ^7.3
 - symfony/cache-contracts: ^2.4 || ^3.0
 - symfony/polyfill-php83: ^v1.32.0
 
Requires (Dev)
- ext-redis: *
 - bamarni/composer-bin-plugin: ^1.8
 - bear/fastly-module: ^1.0
 - koriym/attributes: ^1.0.1
 - madapaja/twig-module: ^2.6
 - mobiledetect/mobiledetectlib: ^3.74 || ^4.8
 - phpunit/phpunit: ^9.6.23
 - predis/predis: ^2.4
 - symfony/process: ^6.1 || ^7.1
 - twig/twig: ^3.4.3
 
- 1.x-dev
 - 1.13.0
 - 1.12.1
 - 1.12.0
 - 1.11.1
 - 1.11.0
 - 1.10.1
 - 1.10.0
 - 1.9.9
 - 1.9.8
 - 1.9.7
 - 1.9.6
 - 1.9.5
 - 1.9.4
 - 1.9.3
 - 1.9.2
 - 1.9.1
 - 1.9.0
 - 1.8.x-dev
 - 1.8.6
 - 1.8.5
 - 1.8.4.x-dev
 - 1.8.4-patch.1
 - 1.8.4
 - 1.8.3
 - 1.8.2
 - 1.8.1
 - 1.8.0
 - 1.7.1
 - 1.7.0
 - 1.6.13
 - 1.6.12
 - 1.6.11
 - 1.6.10
 - 1.6.9
 - 1.6.8
 - 1.6.7
 - 1.6.6
 - 1.6.5
 - 1.6.4
 - 1.6.3
 - 1.6.2
 - 1.6.1
 - 1.6.0
 - 1.5.6
 - 1.5.5
 - 1.5.4
 - 1.5.3
 - 1.5.2
 - 1.5.1
 - 1.5.0
 - 1.4.7
 - 1.4.6
 - 1.4.5
 - 1.4.4
 - 1.4.3
 - 1.4.2
 - 1.4.1
 - 1.4.0
 - 1.3.1
 - 1.3.0
 - 1.2.0
 - 1.1.0
 - 1.0.5
 - 1.0.4
 - 1.0.3
 - 1.0.2
 - 1.0.1
 - 1.0.0
 - 0.5.0
 - 0.4.6
 - 0.4.5
 - 0.4.4
 - 0.4.3
 - 0.4.2
 - 0.4.1
 - 0.4.0
 - 0.3.1
 - 0.3.0
 - 0.2.1
 - 0.2.0
 - 0.1.0
 - dev-php8.5
 - dev-phpcs
 - dev-php84-win
 - dev-spike
 - dev-detached
 - dev-refactor
 
This package is auto-updated.
Last update: 2025-10-21 05:32:15 UTC
README
BEAR.QueryRepository is a distributed caching framework for BEAR.Resource applications, inspired by CQRS. It segregates reads and writes into separate repositories to optimize performance and resource utilization.
Key Features
- Event-Driven Cache Invalidation: Automatically invalidates cache when data changes, ensuring consistency.
 - Dependency Resolution: Resolves dependencies between resources and updates related caches automatically.
 - Donut Caching: Combines dynamic and static content for efficient partial caching.
 - CDN Integration: Seamlessly integrates with modern CDNs (e.g., Fastly, Akamai) for shared cache management.
 - Conditional Requests with ETag Support: Reduces network overhead by leveraging 
ETagand304 Not Modifiedresponses. - Distributed Cache Support: Works with server-side caches (e.g., Redis, APC), shared caches (e.g., CDNs), and client-side caches.
 
Documentation
For more details, check out the BEAR.Sunday cache manual.