Skip to content

RequestCacheQueryBuilder ​

php
class Zairakai\LaravelEloquent\Connections\RequestCacheQueryBuilder extends Builder

Query builder that caches SELECT results for the duration of the current request.

Uses the array cache store, which is fresh per request in both PHP-FPM and Octane. Only active when laravel-eloquent.request_cache.enabled = true.

Source: src/Connections/RequestCacheQueryBuilder.php

Methods ​

getCacheKey() ​

php
protected function getCacheKey(): string

Build a unique cache key for this query (SQL + bindings).

runSelect() ​

php
protected function runSelect(): array

Run the SELECT against the connection, returning the cached result if available.

Returns array<int, mixed>

Documentation of 3.0.5 , built from 63d1d58 on 3.0.5 by pipeline #2949080702 on 2026-10-11.