Appearance
RequestCacheQueryBuilder
php
class Zairakai\LaravelEloquent\Connections\RequestCacheQueryBuilder extends BuilderQuery 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(): stringBuild a unique cache key for this query (SQL + bindings).
runSelect()
php
protected function runSelect(): arrayRun the SELECT against the connection, returning the cached result if available.
Returns array<int, mixed>