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.

Maintainers

👁 koriym

Package info

github.com/bearsunday/BEAR.QueryRepository

pkg:composer/bear/query-repository

Statistics

Installs: 588 225

Dependents: 3

Suggesters: 1

Stars: 6

Open Issues: 2

1.16.2 2026-06-29 07:27 UTC

Requires

Suggests

  • ext-memcached: Required for Memcached cache storage backend
  • ext-redis: Required for Redis cache storage backend

Provides

None

Conflicts

None

Replaces

None

MIT 1ffef189a856f5a63f77f098c5ba888e150033f0

  • Akihito Koriyama <akihito.koriyama.woop@gmail.com>

cachingEtagevent-driven-contentdonut caching

This package is auto-updated.

Last update: 2026-06-29 07:28:27 UTC


README

👁 Scrutinizer Code Quality
👁 codecov
👁 Type Coverage
👁 Coding Standards
👁 Static Analysis
👁 Continuous Integration

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 ETag and 304 Not Modified responses.
  • Distributed Cache Support: Works with server-side caches (e.g., Redis, APC), shared caches (e.g., CDNs), and client-side caches.

Documentation